Skip to content

Commit 6105091

Browse files
committed
Clicking from search result alias/child domain failed to open, fixes #5607
1 parent 3f09740 commit 6105091

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)