summaryrefslogtreecommitdiff
path: root/includes/general.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/general.php')
-rw-r--r--includes/general.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/general.php b/includes/general.php
index f84ae5b..cd6d910 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -273,6 +273,9 @@
if(!preg_match('/^(\\.(?!-)[a-z0-9_-]*[a-z0-9])+$/i','.'.$name)){
return false;
}
+ if(preg_match('/^(\\.[0-9]*)+$/i','.'.$name)){
+ return false;
+ }
return strpos($name, "*") === false;
}