mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Correction to escape the /
This commit is contained in:
parent
417bdb4514
commit
1a86de5fe3
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue