mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Fix regexp for detecting valid mid/act/module
This commit is contained in:
parent
31c38c03a9
commit
221f30484f
1 changed files with 1 additions and 1 deletions
|
|
@ -1441,7 +1441,7 @@ class Context
|
||||||
}
|
}
|
||||||
elseif(in_array($key, array('mid', 'vid', 'act', 'module')))
|
elseif(in_array($key, array('mid', 'vid', 'act', 'module')))
|
||||||
{
|
{
|
||||||
$_val = preg_match('/^[a-zA-Z0-9_-]+$/', $_val) ? $_val : null;
|
$_val = preg_match('/^[a-zA-Z0-9_-]*$/', $_val) ? $_val : null;
|
||||||
if($_val === null)
|
if($_val === null)
|
||||||
{
|
{
|
||||||
self::$_instance->security_check = 'DENY ALL';
|
self::$_instance->security_check = 'DENY ALL';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue