summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/general.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/general.php b/includes/general.php
index 123e6ec..f84ae5b 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -270,7 +270,7 @@
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)){
+ if(!preg_match('/^(\\.(?!-)[a-z0-9_-]*[a-z0-9])+$/i','.'.$name)){
return false;
}
return strpos($name, "*") === false;