Permalink
Browse files

Correction to escape the /

  • Loading branch information...
1 parent 417bdb4 commit 1a86de5fe3d52e66f4cc37212efd19aa3c611e8b @burzum burzum committed Aug 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/dispatcher.php
View
@@ -619,7 +619,7 @@ function cached($url) {
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++) {

0 comments on commit 1a86de5

Please sign in to comment.