1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

Prevent clickjacking. Remove js/css query string when e_HTTP_STATIC is active.

This commit is contained in:
Cameron
2018-01-18 14:16:43 -08:00
parent c2048c1c2f
commit fb7e9668e7
2 changed files with 10 additions and 9 deletions

View File

@@ -2773,6 +2773,7 @@ class e_http_header
}
$this->setHeader('X-Frame-Options: SAMEORIGIN');
// should come after the Etag header
if ($canCache && isset($_SERVER['HTTP_IF_NONE_MATCH']))

View File

@@ -1442,9 +1442,8 @@ class e_jsmanager
}
if(!defined('e_HTTP_STATIC'))
{
if(strpos($path,'?')!==false)
{
$path .= "&".$this->getCacheId();
@@ -1453,6 +1452,7 @@ class e_jsmanager
{
$path .= "?".$this->getCacheId();
}
}
return $path;