summaryrefslogtreecommitdiff
path: root/classes/File.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-02 09:30:15 -0800
committerBrion Vibber <brion@pobox.com>2010-02-02 09:32:28 -0800
commit51c3606715573d8cea3c79ff7bc989a4ba86acc5 (patch)
treef924f01529a093b0e4e40831db784c78acf7b161 /classes/File.php
parent4f6052d8d8bd3d64d395e7849a31183371040eb8 (diff)
Fix regression breaking file attachments. This is what I get for rushing fixes and not properly testing them. :P
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);
}
/**