]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added getfile action
authorJeffery To <jeffery.to@gmail.com>
Thu, 8 Oct 2009 02:00:31 +0000 (10:00 +0800)
committerJeffery To <jeffery.to@gmail.com>
Thu, 22 Oct 2009 04:46:54 +0000 (12:46 +0800)
lib/router.php

index 5529e60acb82f8a59f71d079823dff6bba6086d7..7455d9cf851acc11c72f3fd135ab7768a12724b2 100644 (file)
@@ -171,6 +171,10 @@ class Router
                     array('action' => 'attachment_thumbnail'),
                     array('attachment' => '[0-9]+'));
 
+        $m->connect('getfile/:filename',
+                    array('action' => 'getfile'),
+                    array('filename' => '[A-Za-z0-9._-]+'));
+
         $m->connect('notice/new', array('action' => 'newnotice'));
         $m->connect('notice/new?replyto=:replyto',
                     array('action' => 'newnotice'),