From 19975c22ecf7f94ee3c0ed10d19acee068ccc06b Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 7 Dec 2025 20:27:06 +0100 Subject: Fix minor backslashes (#8292) --- app/Controllers/javascriptController.php | 2 +- app/Models/DatabaseDAO.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/Controllers/javascriptController.php b/app/Controllers/javascriptController.php index 32bdee305..d045cd7b5 100644 --- a/app/Controllers/javascriptController.php +++ b/app/Controllers/javascriptController.php @@ -61,7 +61,7 @@ class FreshRSS_javascript_Controller extends FreshRSS_ActionController { */ public function nonceAction(): void { header('Content-Type: application/json; charset=UTF-8'); - header('Last-Modified: ' . gmdate('D, d M Y H:i:s \G\M\T')); + header('Last-Modified: ' . gmdate('D, d M Y H:i:s \\G\\M\\T')); header('Expires: 0'); header('Cache-Control: private, no-cache, no-store, must-revalidate'); header('Pragma: no-cache'); diff --git a/app/Models/DatabaseDAO.php b/app/Models/DatabaseDAO.php index 1a6a824e5..9fa950c16 100644 --- a/app/Models/DatabaseDAO.php +++ b/app/Models/DatabaseDAO.php @@ -254,7 +254,7 @@ SQL; $values = [':table_schema' => $db['base']]; if (!$all) { $sql .= ' AND table_name LIKE :table_name'; - $values[':table_name'] = addcslashes($this->pdo->prefix(), '%_') . '%'; + $values[':table_name'] = addcslashes($this->pdo->prefix(), '\\%_') . '%'; } $res = $this->fetchColumn($sql, 0, $values); return isset($res[0]) ? (int)($res[0]) : -1; -- cgit v1.2.3