Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix regex match when regex included meta characters

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information...
commit 23f1c8e1c70f84cdeef9adbdec1901cf0e598168 1 parent 4496a0a
SKAhack authored markstory committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  cake/libs/set.php
View
2  cake/libs/set.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.