mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-15 03:44:24 +00:00
Fix query replacement regex, really, this time.
This commit is contained in:
parent
5fdcb20d59
commit
d667b39702
@ -338,8 +338,8 @@ class AwlDBDialect {
|
||||
}
|
||||
|
||||
foreach( $args AS $name => $value ) {
|
||||
$replacement = $this->Quote($value);
|
||||
$querystring = preg_replace( '{\E'.$name.'\Q\b}s', $replacement, $querystring );
|
||||
$replacement = str_replace('$', '\\$', $this->Quote($value)); // No positional replacement in $replacement!
|
||||
$querystring = preg_replace( '{\Q'.$name.'\E\b}s', $replacement, $querystring );
|
||||
}
|
||||
|
||||
return $querystring;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user