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 cd39f1b..1c25bd5 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -276,7 +276,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;