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
245610d2e1
commit
027c7e61fd
|
@ -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