mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Prevent clickjacking. Remove js/css query string when e_HTTP_STATIC is active.
This commit is contained in:
@@ -2773,6 +2773,7 @@ class e_http_header
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->setHeader('X-Frame-Options: SAMEORIGIN');
|
||||||
|
|
||||||
// should come after the Etag header
|
// should come after the Etag header
|
||||||
if ($canCache && isset($_SERVER['HTTP_IF_NONE_MATCH']))
|
if ($canCache && isset($_SERVER['HTTP_IF_NONE_MATCH']))
|
||||||
|
@@ -1442,16 +1442,16 @@ class e_jsmanager
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(!defined('e_HTTP_STATIC'))
|
||||||
|
|
||||||
|
|
||||||
if(strpos($path,'?')!==false)
|
|
||||||
{
|
{
|
||||||
$path .= "&".$this->getCacheId();
|
if(strpos($path,'?')!==false)
|
||||||
}
|
{
|
||||||
else
|
$path .= "&".$this->getCacheId();
|
||||||
{
|
}
|
||||||
$path .= "?".$this->getCacheId();
|
else
|
||||||
|
{
|
||||||
|
$path .= "?".$this->getCacheId();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $path;
|
return $path;
|
||||||
|
Reference in New Issue
Block a user