From 12335b680e19bb6a64510f95d5bf0c4b9624597a Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 9 Feb 2024 15:10:29 +0000 Subject: [PATCH] log query source uri even with niceurls --- core/database.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/database.php b/core/database.php index ab6e173c..d15e897e 100644 --- a/core/database.php +++ b/core/database.php @@ -208,8 +208,9 @@ class Database public function _execute(string $query, array $args = []): PDOStatement { try { + $uri = $_SERVER['REQUEST_URI'] ?? "unknown uri"; return $this->get_db()->execute( - "-- " . str_replace("%2F", "/", urlencode($_GET['q'] ?? '')). "\n" . + "-- $uri\n" . $query, $args );