From: Brion Vibber Date: Tue, 2 Feb 2010 17:30:15 +0000 (-0800) Subject: Fix regression breaking file attachments. This is what I get for rushing fixes and... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=51c3606715573d8cea3c79ff7bc989a4ba86acc5;p=quix0rs-gnu-social.git Fix regression breaking file attachments. This is what I get for rushing fixes and not properly testing them. :P --- diff --git a/classes/File.php b/classes/File.php index 6dd9e0c06e..ee418a8024 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); } /**