aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/javascriptController.php2
-rw-r--r--app/Models/DatabaseDAO.php2
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;