summaryrefslogtreecommitdiff
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:30:15 -0800
commit027c7e61fd6ecbb866a4f18111662902942d046e (patch)
treec3f39033760530fd6bd89848a4659149cd4d2140
parent245610d2e18e2df26b8b2095ab3092855a272096 (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.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);
}
/**