Skip to content

Commit

Permalink
Correction to escape the /
Browse files Browse the repository at this point in the history
  • Loading branch information
burzum committed Aug 12, 2009
1 parent 417bdb4 commit 1a86de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/dispatcher.php
Expand Up @@ -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++) {
Expand Down

0 comments on commit 1a86de5

Please sign in to comment.