]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix regression breaking file attachments. This is what I get for rushing fixes and...
authorBrion Vibber <brion@pobox.com>
Tue, 2 Feb 2010 17:30:15 +0000 (09:30 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 2 Feb 2010 17:30:15 +0000 (09:30 -0800)
classes/File.php

index 6dd9e0c06e32b42115d7d02cf1dc53b7e17ab1d3..ee418a802413a203ed3ea1460afb8fc3d91aeab7 100644 (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);
     }
 
     /**