mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-14 03:34:38 +00:00
Catch when we supply parameters without a leading ':'
This commit is contained in:
parent
d652eaf064
commit
dca93db8ed
@ -338,6 +338,9 @@ class AwlDBDialect {
|
||||
}
|
||||
|
||||
foreach( $args AS $name => $value ) {
|
||||
if ( substr($name, 0, 1) != ':' ) {
|
||||
dbg_error_log( "ERROR", "AwlDBDialect: Named parameter '%s' does not begin with a colon.", $name);
|
||||
}
|
||||
$replacement = str_replace('$', '\\$', $this->Quote($value)); // No positional replacement in $replacement!
|
||||
$querystring = preg_replace( '{\Q'.$name.'\E\b}s', $replacement, $querystring );
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user