mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
PHP8 Fix for search.php . e_HTTP fix for CLI mode.
This commit is contained in:
@@ -5524,12 +5524,20 @@ return;
|
||||
|
||||
private function grantScriptAccess()
|
||||
{
|
||||
$this->allowedTags = array_merge($this->allowedTags, $this->scriptTags);
|
||||
if(!in_array('script', $this->allowedTags))
|
||||
{
|
||||
$this->allowedTags = array_merge($this->allowedTags, $this->scriptTags);
|
||||
}
|
||||
|
||||
foreach($this->allowedAttributes as $tag => $att)
|
||||
{
|
||||
foreach($this->scriptAttributes as $new)
|
||||
{
|
||||
if(in_array($new, $this->allowedAttributes[$tag]))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->allowedAttributes[$tag][] = $new;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user