Replace all “%” with “%%” before passing “$query” to “sprintf”

This commit is contained in:
pezcurrel 2024-07-29 16:50:44 +02:00
parent d6dabebd50
commit 51cfcc931c

View file

@ -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;
}