summaryrefslogtreecommitdiff
path: root/classes/File.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/File.php')
-rw-r--r--classes/File.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/File.php b/classes/File.php
index 6dd9e0c06..ee418a802 100644
--- a/classes/File.php
+++ b/classes/File.php
@@ -181,7 +181,7 @@ class File extends Memcached_DataObject
*/
static function validFilename($filename)
{
- return preg_match('^/[A-Za-z0-9._-]+$/', $filename);
+ return preg_match('/^[A-Za-z0-9._-]+$/', $filename);
}
/**