We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e14d73 commit 698294aCopy full SHA for 698294a
1 file changed
interface/web/capp.php
@@ -43,6 +43,7 @@
43
}
44
45
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,5}$/i", $redirect)) die('redirect contains unallowed chars.');
47
48
//* Check if user may use the module.
49
$user_modules = explode(",", $_SESSION["s"]["user"]["modules"]);
0 commit comments