Permalink
Browse files

Fix regex match when regex included meta characters

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information...
1 parent 4496a0a commit 23f1c8e1c70f84cdeef9adbdec1901cf0e598168 SKAhack committed with markstory Aug 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/set.php
View
@@ -393,7 +393,7 @@ function extract($path, $data = null, $options = array()) {
$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);

0 comments on commit 23f1c8e

Please sign in to comment.