diff options
Diffstat (limited to 'includes/general.php')
-rw-r--r-- | includes/general.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/general.php b/includes/general.php index 621e1cc..123e6ec 100644 --- a/includes/general.php +++ b/includes/general.php @@ -270,6 +270,9 @@ if(substr($name,0,2) == "*."){ $name = substr($name, 2); } + if(!preg_match("/[a-zA-Z0-9_]([a-zA-Z0-9\\-_]*[a-zA-Z0-9])?/",$name)){ + return false; + } return strpos($name, "*") === false; } |