summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-06-03 08:02:12 +0000
committeralecpl <alec@alec.pl>2010-06-03 08:02:12 +0000
commitbb8721aaeb4961f0dee8ca250749906e01a8f6a8 (patch)
tree743b5444c38d9903331079e95bf99b42c83ba3b0 /program/include/rcmail.php
parent05a631a43c1950fc99f817cb50e4184dc0696663 (diff)
- Support dynamic hostname (%d/%n) variables in configuration options (#1485438)
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 652dbd00c..20b7bf7c9 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -575,7 +575,7 @@ class rcmail
if (!$allowed)
return false;
}
- else if (!empty($config['default_host']) && $host != $config['default_host'])
+ else if (!empty($config['default_host']) && $host != rcube_parse_host($config['default_host']))
return false;
// parse $host URL
@@ -743,7 +743,7 @@ class rcmail
$host = get_input_value('_host', RCUBE_INPUT_POST);
}
else
- $host = $default_host;
+ $host = rcube_parse_host($default_host);
return $host;
}