Correction to escape the /

This commit is contained in:
burzum 2009-08-12 17:11:36 +02:00
parent 417bdb4514
commit 1a86de5fe3

View file

@ -619,7 +619,7 @@ class Dispatcher extends Object {
if ($pos > 0) {
$plugin = substr($url, 0, $pos - 1);
$url = preg_replace('/^' . preg_quote($plugin) . '\//i', '', $url);
$url = preg_replace('/^' . preg_quote($plugin, '/') . '\//i', '', $url);
$pluginPaths = Configure::read('pluginPaths');
$count = count($pluginPaths);
for ($i = 0; $i < $count; $i++) {