Fix regression breaking file attachments. This is what I get for rushing fixes and not properly testing them. :P

This commit is contained in:
Brion Vibber 2010-02-02 09:30:15 -08:00
parent 245610d2e1
commit 027c7e61fd

View File

@ -181,7 +181,7 @@ class File extends Memcached_DataObject
*/ */
static function validFilename($filename) static function validFilename($filename)
{ {
return preg_match('^/[A-Za-z0-9._-]+$/', $filename); return preg_match('/^[A-Za-z0-9._-]+$/', $filename);
} }
/** /**