]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
revert revert on getfile
authorEvan Prodromou <evan@status.net>
Sat, 31 Oct 2009 18:43:01 +0000 (14:43 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 31 Oct 2009 18:43:01 +0000 (14:43 -0400)
lib/router.php

index 2fd255fe6ff6161ad0f486f09f58410cd180adaa..3223b0a265a185e2c60f3f775550b5c9f9fa7866 100644 (file)
@@ -577,6 +577,10 @@ class Router
             $m->connect('api/search.json', array('action' => 'twitapisearchjson'));
             $m->connect('api/trends.json', array('action' => 'twitapitrends'));
 
+            $m->connect('getfile/:filename',
+                        array('action' => 'getfile'),
+                        array('filename' => '[A-Za-z0-9._-]+'));
+
             // user stuff
 
             foreach (array('subscriptions', 'subscribers',