mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-03 18:12:40 +00:00
Applying patch from 'phally' to update Set::extract to properly tokenize xpath selectors which contain hyphens (-). Fixes #6140
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8059 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
5ded592c1e
commit
f20ccc745c
2 changed files with 39 additions and 1 deletions
|
@ -388,7 +388,7 @@ class Set extends Object {
|
|||
if (!isset($contexts[0])) {
|
||||
$contexts = array($data);
|
||||
}
|
||||
$tokens = array_slice(preg_split('/(?<!=)\/(?![a-z]*\])/', $path), 1);
|
||||
$tokens = array_slice(preg_split('/(?<!=)\/(?![a-z-]*\])/', $path), 1);
|
||||
|
||||
do {
|
||||
$token = array_shift($tokens);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue