From 1a86de5fe3d52e66f4cc37212efd19aa3c611e8b Mon Sep 17 00:00:00 2001 From: burzum Date: Wed, 12 Aug 2009 17:11:36 +0200 Subject: [PATCH] Correction to escape the / --- cake/dispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/dispatcher.php b/cake/dispatcher.php index 063bdf458..6140efacf 100644 --- a/cake/dispatcher.php +++ b/cake/dispatcher.php @@ -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++) {