diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-09-20 11:07:56 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-09-20 11:07:56 +0000 |
| commit | b32207d5e1bfc68001b81d21aac2d511ce0c979e (patch) | |
| tree | ec9af7d31cd333838a08ba335f507a8b06a34440 /roundcubemail/program/include/main.inc | |
| parent | 29d7199ce0e4d8642c14ba78ab7e6f4e85ccd064 (diff) | |
- Support %z variable in host configuration options (#1487003)
git-svn-id: https://svn.roundcube.net/trunk@3977 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/main.inc')
| -rw-r--r-- | roundcubemail/program/include/main.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index 7492f6c0e..00fd0830f 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/program/include/main.inc @@ -1588,8 +1588,10 @@ function rcube_parse_host($name) $d = preg_replace('/^[^\.]+\./', '', $n); // %h - IMAP host $h = $_SESSION['imap_host']; + // %z - IMAP domain without first part, e.g. %h=imap.domain.tld, %z=domain.tld + $z = preg_replace('/^[^\.]+\./', '', $h); - $name = str_replace(array('%n', '%d', '%h'), array($n, $d, $h), $name); + $name = str_replace(array('%n', '%d', '%h', '%z'), array($n, $d, $h, $z), $name); return $name; } |
