Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index a3bbc3e2f..f4f5e3298 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1119,9 +1119,9 @@ class rcmail extends rcube
}
$base_path = '';
- $server_var = $this->get_requesr_uri_field();
+ $server_var = $this->get_request_uri_field();
if ($server_var && !empty($_SERVER[$server_var])) {
- $base_path = preg_replace('/[?&].*$/', '', $_SERVER[$server_var]) ?: './';
+ $base_path = preg_replace('/[?&].*$/', '', $_SERVER[$server_var]);
}
else if (!empty($_SERVER['REDIRECT_SCRIPT_URL'])) {
$base_path = $_SERVER['REDIRECT_SCRIPT_URL'];
@@ -1168,7 +1168,8 @@ class rcmail extends rcube
* Get the 'request_uri_field' config option
* with an additional check against the 'proxy_whitelist' config
*/
- protected function get_requesr_uri_field() {
+ protected function get_request_uri_field()
+ {
$server_var = $this->config->get('request_uri_field');
if (!empty($server_var) && (strpos($server_var, 'HTTP_') !== 0 || rcube_utils::check_proxy_whitelist_ip())) {
return $server_var;