Aleksander Machniak
2013-10-13 ff6de99ae4f353f793c95208ad6407ac59a63376
program/lib/Roundcube/rcube_base_replacer.php
@@ -90,8 +90,8 @@
            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);
                }