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 4f6052d8d8
commit 51c3606715
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**