mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Prevent clickjacking. Remove js/css query string when e_HTTP_STATIC is active.
This commit is contained in:
@@ -1442,16 +1442,16 @@ class e_jsmanager
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(strpos($path,'?')!==false)
|
||||
if(!defined('e_HTTP_STATIC'))
|
||||
{
|
||||
$path .= "&".$this->getCacheId();
|
||||
}
|
||||
else
|
||||
{
|
||||
$path .= "?".$this->getCacheId();
|
||||
if(strpos($path,'?')!==false)
|
||||
{
|
||||
$path .= "&".$this->getCacheId();
|
||||
}
|
||||
else
|
||||
{
|
||||
$path .= "?".$this->getCacheId();
|
||||
}
|
||||
}
|
||||
|
||||
return $path;
|
||||
|
Reference in New Issue
Block a user