mirror of
https://github.com/unraid/webgui.git
synced 2026-01-28 12:39:20 -06:00
Enhanced dockerMan Security
This commit is contained in:
@@ -245,7 +245,7 @@ function xmlSecurity(&$template) {
|
||||
$tempElement = htmlspecialchars_decode($element);
|
||||
$tempElement = str_replace("[","<",$tempElement);
|
||||
$tempElement = str_replace("]",">",$tempElement);
|
||||
if (preg_match('#<script(.*?)>(.*?)</script>#is',$tempElement) || preg_match('#<iframe(.*?)>(.*?)</iframe>#is',$tempElement)) {
|
||||
if (preg_match('#<script(.*?)>(.*?)</script>#is',$tempElement) || preg_match('#<iframe(.*?)>(.*?)</iframe>#is',$tempElement) || (stripos($tempElement,"<link") !== false) ) {
|
||||
$element = "REMOVED";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user