mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 16:54:44 +02:00
Fix issue with name matching regex not getting bundled in bind value processwire/processwire-issues#1173
This commit is contained in:
@@ -2416,8 +2416,8 @@ class PageFinder extends Wire {
|
|||||||
$s = '';
|
$s = '';
|
||||||
foreach(explode(' ', $value) as $n => $word) {
|
foreach(explode(' ', $value) as $n => $word) {
|
||||||
$word = $sanitizer->pageName($word, Sanitizer::toAscii);
|
$word = $sanitizer->pageName($word, Sanitizer::toAscii);
|
||||||
$bindKey = $query->bindValueGetKey($word);
|
$bindKey = $query->bindValueGetKey('[[:<:]]' . $word . '[[:>:]]');
|
||||||
$s .= ($s ? ' AND ' : '') . "$table.$field RLIKE '" . '[[:<:]]' . $bindKey . '[[:>:]]' . "'";
|
$s .= ($s ? ' AND ' : '') . "$table.$field RLIKE $bindKey";
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if($isName && $isPartialOperator) {
|
} else if($isName && $isPartialOperator) {
|
||||||
|
Reference in New Issue
Block a user