[CORE][ACTION] Removed getfile action. Superseded by attachment/*/download, which additionally uses a file hash as oposed to a filename.

Additionally, added etag and last modified HTTP headers to attachments, to more effectively take advantage of caching
This commit is contained in:
Miguel Dantas
2019-06-26 03:39:39 +01:00
committed by Diogo Cordeiro
parent aa5c6bbf08
commit 7643f3cf7b
6 changed files with 71 additions and 199 deletions

View File

@@ -802,10 +802,6 @@ class Router
array('action' => 'plugindisable'),
array('plugin' => '[A-Za-z0-9_]+'));
$m->connect('getfile/:filename',
array('action' => 'getfile'),
array('filename' => '[A-Za-z0-9._-]+'));
// Common people-tag stuff
$m->connect('peopletag/:tag', array('action' => 'peopletag',