diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-10-13 16:12:43 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-10-13 16:12:43 +0200 |
commit | ff6de99ae4f353f793c95208ad6407ac59a63376 (patch) | |
tree | 4707da4137de1886ff7a002d5d912bc7a7d7bf2d /program/lib/Roundcube/rcube_base_replacer.php | |
parent | 0f15219a93c7f6de97223d004125fb32438ffaf7 (diff) |
Some micro-optimizations
Diffstat (limited to 'program/lib/Roundcube/rcube_base_replacer.php')
-rw-r--r-- | program/lib/Roundcube/rcube_base_replacer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_base_replacer.php b/program/lib/Roundcube/rcube_base_replacer.php index a59bba926..fa6764753 100644 --- a/program/lib/Roundcube/rcube_base_replacer.php +++ b/program/lib/Roundcube/rcube_base_replacer.php @@ -90,8 +90,8 @@ class rcube_base_replacer if (preg_match_all('/\.\.\//', $path, $matches, PREG_SET_ORDER)) { foreach ($matches as $a_match) { - if (strrpos($base_url, '/')) { - $base_url = substr($base_url, 0, strrpos($base_url, '/')); + if ($pos = strrpos($base_url, '/')) { + $base_url = substr($base_url, 0, $pos); } $path = substr($path, 3); } |