From 51cfcc931c127e3009962013340a2ffb4f1f5bf0 Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Mon, 29 Jul 2024 16:50:44 +0200 Subject: [PATCH] =?UTF-8?q?Replace=20all=20=E2=80=9C%=E2=80=9D=20with=20?= =?UTF-8?q?=E2=80=9C%%=E2=80=9D=20before=20passing=20=E2=80=9C$query?= =?UTF-8?q?=E2=80=9D=20to=20=E2=80=9Csprintf=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/site/instances.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/site/instances.php b/web/site/instances.php index 8ee3eef..d330dc5 100644 --- a/web/site/instances.php +++ b/web/site/instances.php @@ -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; }