From e4b4476645b138c852edcf0c26698bc04d431e30 Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Tue, 18 Oct 2022 07:16:20 +0000 Subject: [PATCH] Update interface/lib/classes/ids.inc.php --- interface/lib/classes/ids.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/lib/classes/ids.inc.php b/interface/lib/classes/ids.inc.php index 6d19726417..ffa24a294e 100644 --- a/interface/lib/classes/ids.inc.php +++ b/interface/lib/classes/ids.inc.php @@ -77,7 +77,7 @@ class ids { $line = trim($line); if(substr($line,0,1) != '#') { list($user,$path,$varname) = explode(':',$line); - if($current_script_name == $path) { + if($current_script_name == $path || $path == '*') { if($user = 'any' || ($user == 'user' && ($_SESSION['s']['user']['typ'] == 'user' || $_SESSION['s']['user']['typ'] == 'admin')) || ($user == 'admin' && $_SESSION['s']['user']['typ'] == 'admin')) { @@ -100,7 +100,7 @@ class ids { $line = trim($line); if(substr($line,0,1) != '#') { list($user,$path,$varname) = explode(':',$line); - if($current_script_name == $path) { + if($current_script_name == $path || $path == '*') { if($user = 'any' || ($user == 'user' && ($_SESSION['s']['user']['typ'] == 'user' || $_SESSION['s']['user']['typ'] == 'admin')) || ($user == 'admin' && $_SESSION['s']['user']['typ'] == 'admin')) { -- GitLab