Skip to content
Snippets Groups Projects
Commit 220909bd authored by Till Brehm's avatar Till Brehm
Browse files

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
parents 2a1b32e3 48af421d
No related branches found
No related tags found
1 merge request!1026Clicking from search result alias/child domain failed to open, fixes #5607
Pipeline #2999 passed
...@@ -43,7 +43,7 @@ if($_SESSION["s"]["user"]['active'] != 1) { ...@@ -43,7 +43,7 @@ if($_SESSION["s"]["user"]['active'] != 1) {
} }
if(!preg_match("/^[a-z]{2,20}$/i", $mod)) die('module name contains unallowed chars.'); if(!preg_match("/^[a-z]{2,20}$/i", $mod)) die('module name contains unallowed chars.');
if($redirect != '' && !preg_match("/^[a-z0-9]+\/[a-z0-9_\.\-]+\?id=[0-9]{1,9}$/i", $redirect)) die('redirect contains unallowed chars.'); 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.');
//* Check if user may use the module. //* Check if user may use the module.
$user_modules = explode(",", $_SESSION["s"]["user"]["modules"]); $user_modules = explode(",", $_SESSION["s"]["user"]["modules"]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment