Fixed incorrect escaping when using backslashes
This commit is contained in:
parent
deeeaa56ea
commit
6db83d45e2
@ -356,6 +356,10 @@ final class Database {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Put a backslash in front of every character that is part of the regular
|
||||||
|
// expression syntax. Avoids a backreference when using preg_replace.
|
||||||
|
$value = preg_quote($value);
|
||||||
|
|
||||||
// Replace
|
// Replace
|
||||||
$query = preg_replace('/\?/', $value, $query, 1);
|
$query = preg_replace('/\?/', $value, $query, 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user