Replace all “%” with “%%” before passing “$query” to “sprintf”
This commit is contained in:
parent
d6dabebd50
commit
51cfcc931c
1 changed files with 1 additions and 1 deletions
|
@ -959,7 +959,7 @@ function tquery($query,$line) {
|
|||
$bt=hrtime(true);
|
||||
//usleep(rand(10000,1050000));
|
||||
$res=mysqli_query($link,$query) or muorimeglio('Error on line '.$line.': '.mysqli_error($link),true);
|
||||
debug(sprintf('%f secs. for query «'.$query.'»'.N,hrte($bt)),$debug);
|
||||
debug(sprintf('%f secs. for query «'.str_replace('%','%%',$query).'»'.N,hrte($bt)),$debug);
|
||||
return $res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue