1
0
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:
Cameron
2021-01-13 11:20:58 -08:00
parent b6f9b831ca
commit ca471b31db
3 changed files with 17 additions and 1 deletions

View File

@@ -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;
}
}