Skip to content

Commit 220909b

Browse files
author
Till Brehm
committed
Merge branch 'patch-5607-search-child-domain' into 'stable-3.1'
Clicking from search result alias/child domain failed to open, fixes #5607 See merge request ispconfig/ispconfig3!1026
2 parents 2a1b32e + 48af421 commit 220909b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/capp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
}
4444

4545
if(!preg_match("/^[a-z]{2,20}$/i", $mod)) die('module name contains unallowed chars.');
46-
if($redirect != '' && !preg_match("/^[a-z0-9]+\/[a-z0-9_\.\-]+\?id=[0-9]{1,9}$/i", $redirect)) die('redirect contains unallowed chars.');
46+
if($redirect != '' && !preg_match("/^[a-z0-9]+\/[a-z0-9_\.\-]+\?id=[0-9]{1,9}(\&type=[a-z0-9_\.\-]+)?$/i", $redirect)) die('redirect contains unallowed chars.');
4747

4848
//* Check if user may use the module.
4949
$user_modules = explode(",", $_SESSION["s"]["user"]["modules"]);

0 commit comments

Comments
 (0)