Fix regression breaking file attachments. This is what I get for rushing fixes and not properly testing them. :P
This commit is contained in:
parent
4f6052d8d8
commit
51c3606715
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user