summaryrefslogtreecommitdiff
path: root/classes/File.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-02 09:57:50 -0800
committerBrion Vibber <brion@pobox.com>2010-02-02 09:57:50 -0800
commitf4c81fa1e138cbcbab27e6135f464a06d0209a37 (patch)
tree6af05efd09b29f0a3600e6d77f563b3fa68c4ff0 /classes/File.php
parent2be00ce64221197f3c8ad1458eba2488c8836e5c (diff)
parent027c7e61fd6ecbb866a4f18111662902942d046e (diff)
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'classes/File.php')
-rw-r--r--classes/File.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/File.php b/classes/File.php
index 8d91ce500..307fdb686 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);
}
/**