diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-04 08:31:55 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-04 08:31:55 +0000 |
| commit | 7a21b982f837592a19747189925b8d402e4059cc (patch) | |
| tree | 3dcfd43205ba4bc1c9947b42d8446e61b3d56f97 /roundcubemail/program/include/rcube_imap.php | |
| parent | a4e2b2d1cf9be820bd3dbb7bb90cb88cd6fd7834 (diff) | |
- ereg -> preg
git-svn-id: https://svn.roundcube.net/trunk@2453 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index c97a5f1dc..8cb5c6dd0 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -139,7 +139,7 @@ class rcube_imap if (!empty($this->conn->rootdir)) { $this->set_rootdir($this->conn->rootdir); - $this->root_ns = ereg_replace('[\.\/]$', '', $this->conn->rootdir); + $this->root_ns = preg_replace('/[.\/]$/', '', $this->conn->rootdir); } } @@ -195,7 +195,7 @@ class rcube_imap */ function set_rootdir($root) { - if (ereg('[\.\/]$', $root)) //(substr($root, -1, 1)==='/') + if (preg_match('/[.\/]$/', $root)) //(substr($root, -1, 1)==='/') $root = substr($root, 0, -1); $this->root_dir = $root; |
