mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix regex match when regex included meta characters
Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
parent
4496a0a0bb
commit
23f1c8e1c7
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ class Set {
|
|||
$contexts = array($data);
|
||||
}
|
||||
}
|
||||
$tokens = array_slice(preg_split('/(?<!=)\/(?![a-z-\s]*\])/', $path), 1);
|
||||
$tokens = array_slice(preg_split('/(?<!=|\\\\)\/(?![a-z-\s]*\])/', $path), 1);
|
||||
|
||||
do {
|
||||
$token = array_shift($tokens);
|
||||
|
|
Loading…
Reference in a new issue