Skip to content

Commit 29da1d4

Browse files
author
Till Brehm
committed
Merge branch '6395-add-wildcard-path-option-to-ids-whitelist' into 'develop'
Add wildcard path option to IDS whitelist. Closes #6395 See merge request ispconfig/ispconfig3!1639
2 parents 2b219a7 + e4b4476 commit 29da1d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/classes/ids.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function start()
7777
$line = trim($line);
7878
if(substr($line,0,1) != '#') {
7979
list($user,$path,$varname) = explode(':',$line);
80-
if($current_script_name == $path) {
80+
if($current_script_name == $path || $path == '*') {
8181
if($user = 'any'
8282
|| ($user == 'user' && ($_SESSION['s']['user']['typ'] == 'user' || $_SESSION['s']['user']['typ'] == 'admin'))
8383
|| ($user == 'admin' && $_SESSION['s']['user']['typ'] == 'admin')) {
@@ -100,7 +100,7 @@ public function start()
100100
$line = trim($line);
101101
if(substr($line,0,1) != '#') {
102102
list($user,$path,$varname) = explode(':',$line);
103-
if($current_script_name == $path) {
103+
if($current_script_name == $path || $path == '*') {
104104
if($user = 'any'
105105
|| ($user == 'user' && ($_SESSION['s']['user']['typ'] == 'user' || $_SESSION['s']['user']['typ'] == 'admin'))
106106
|| ($user == 'admin' && $_SESSION['s']['user']['typ'] == 'admin')) {

0 commit comments

Comments
 (0)