mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2025-12-23 21:47:44 -05:00
Fix minor backslashes (#8292)
This commit is contained in:
committed by
GitHub
parent
d9ac9c513f
commit
19975c22ec
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user