diff options
author | Brion Vibber <brion@pobox.com> | 2010-02-02 09:30:15 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-02-02 09:32:28 -0800 |
commit | 51c3606715573d8cea3c79ff7bc989a4ba86acc5 (patch) | |
tree | f924f01529a093b0e4e40831db784c78acf7b161 | |
parent | 4f6052d8d8bd3d64d395e7849a31183371040eb8 (diff) |
Fix regression breaking file attachments. This is what I get for rushing fixes and not properly testing them. :P
-rw-r--r-- | classes/File.php | 2 |
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); } /** |