diff options
| author | 2025-12-07 20:27:06 +0100 | |
|---|---|---|
| committer | 2025-12-07 20:27:06 +0100 | |
| commit | 19975c22ecf7f94ee3c0ed10d19acee068ccc06b (patch) | |
| tree | 6f8e4261209fdb97389cd7dc554630628c4600ec /app | |
| parent | d9ac9c513f733e5bc3da368e3aa3af79367c7197 (diff) | |
Fix minor backslashes (#8292)
Diffstat (limited to 'app')
| -rw-r--r-- | app/Controllers/javascriptController.php | 2 | ||||
| -rw-r--r-- | app/Models/DatabaseDAO.php | 2 |
2 files changed, 2 insertions, 2 deletions
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; |
