aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Controllers/javascriptController.php2
-rw-r--r--app/Models/DatabaseDAO.php2
-rw-r--r--lib/http-conditional.php6
3 files changed, 5 insertions, 5 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;
diff --git a/lib/http-conditional.php b/lib/http-conditional.php
index e56732354..9846f0813 100644
--- a/lib/http-conditional.php
+++ b/lib/http-conditional.php
@@ -94,7 +94,7 @@ function httpConditional(int $UnixTimeStamp, int $cacheSeconds = 0, int $cachePr
$nbCond = 0;
//rfc2616-sec3.html#sec3.3.1
- $dateLastModif = gmdate('D, d M Y H:i:s \G\M\T', $UnixTimeStamp);
+ $dateLastModif = gmdate('D, d M Y H:i:s \\G\\M\\T', $UnixTimeStamp);
$dateCacheClient = 'Thu, 10 Jan 1980 20:30:40 GMT';
//rfc2616-sec14.html#sec14.19 //='"0123456789abcdef0123456789abcdef"'
@@ -169,7 +169,7 @@ function httpConditional(int $UnixTimeStamp, int $cacheSeconds = 0, int $cachePr
else $cache = '';
$cache .= 'max-age=' . floor($cacheSeconds);
}
- //header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T',time()+$cacheSeconds)); //HTTP/1.0 //rfc2616-sec14.html#sec14.21
+ //header('Expires: '.gmdate('D, d M Y H:i:s \\G\\M\\T',time()+$cacheSeconds)); //HTTP/1.0 //rfc2616-sec14.html#sec14.21
header('Cache-Control: ' . $cache); //rfc2616-sec14.html#sec14.9
header('Last-Modified: ' . $dateLastModif);
header('Etag: ' . $etagServer);
@@ -204,7 +204,7 @@ function httpConditionalRefresh(int $UnixTimeStamp): void {
elseif (is_string($_SERVER['PATH_TRANSLATED'] ?? null)) $scriptName = $_SERVER['PATH_TRANSLATED'];
else return;
- $dateLastModif = gmdate('D, d M Y H:i:s \G\M\T', $UnixTimeStamp);
+ $dateLastModif = gmdate('D, d M Y H:i:s \\G\\M\\T', $UnixTimeStamp);
if (is_string($_SERVER['QUERY_STRING'] ?? null)) $myQuery = '?' . $_SERVER['QUERY_STRING'];
else $myQuery = '';