mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-21 01:54:23 +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 ) {
|
foreach( $args AS $name => $value ) {
|
||||||
$replacement = $this->Quote($value);
|
$replacement = str_replace('$', '\\$', $this->Quote($value)); // No positional replacement in $replacement!
|
||||||
$querystring = preg_replace( '{\E'.$name.'\Q\b}s', $replacement, $querystring );
|
$querystring = preg_replace( '{\Q'.$name.'\E\b}s', $replacement, $querystring );
|
||||||
}
|
}
|
||||||
|
|
||||||
return $querystring;
|
return $querystring;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user