diff options
author | alecpl <alec@alec.pl> | 2009-05-04 08:31:55 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-05-04 08:31:55 +0000 |
commit | 23a2eec4d540b5f971ed6377e7ad776456ee0633 (patch) | |
tree | 34081a5830cb6c2c843dbf3b873bf2643400c134 /program/include/rcube_imap.php | |
parent | db5abc6c211d78ad80b716ddef11eabe5e32f137 (diff) |
- ereg -> preg
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r-- | program/include/rcube_imap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index c97a5f1dc..8cb5c6dd0 100644 --- a/program/include/rcube_imap.php +++ b/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; |