1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

Fix issue with name matching regex not getting bundled in bind value processwire/processwire-issues#1173

This commit is contained in:
Ryan Cramer
2020-05-22 14:54:36 -04:00
parent c0a867f9df
commit 0b0d372274

View File

@@ -2416,8 +2416,8 @@ class PageFinder extends Wire {
$s = '';
foreach(explode(' ', $value) as $n => $word) {
$word = $sanitizer->pageName($word, Sanitizer::toAscii);
$bindKey = $query->bindValueGetKey($word);
$s .= ($s ? ' AND ' : '') . "$table.$field RLIKE '" . '[[:<:]]' . $bindKey . '[[:>:]]' . "'";
$bindKey = $query->bindValueGetKey('[[:<:]]' . $word . '[[:>:]]');
$s .= ($s ? ' AND ' : '') . "$table.$field RLIKE $bindKey";
}
} else if($isName && $isPartialOperator) {