This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, Branch_5_3 has been updated
via 55bf9706223db0ce3e7cdffffc0d6b9712fd8ea8 (commit)
from 507261f4635b1a9917a22369a722866de485d1fe (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 55bf9706223db0ce3e7cdffffc0d6b9712fd8ea8
Author: Sylvain Beucler <[email protected]>
Date: Wed May 21 10:40:04 2014 +0200
FRS: mintain compatibility with FF 5.1 URLs; display an error if download
mode is incorrect (instead of blank page)
diff --git a/src/www/frs/download.php b/src/www/frs/download.php
index d2e86fa..382aeb7 100644
--- a/src/www/frs/download.php
+++ b/src/www/frs/download.php
@@ -85,6 +85,14 @@ $expl_pathinfo = explode('/', $pathinfo);
$mode = $expl_pathinfo[3];
+// .../download.php/123/foo.tar.gz (5.1 backward compatibility)
+if (ctype_digit($mode)) {
+ $mode = 'file';
+ $expl_pathinfo = array_merge(array_slice($expl_pathinfo, 0, 3),
+ array($mode),
+ array_slice($expl_pathinfo, 3));
+}
+
switch ($mode) {
case 'file':
// .../download.php/file/123/foo.tar.gz
@@ -194,6 +202,9 @@ case 'latestfile':
send_file ($filename, $filepath, $file_id);
break;
+
+default:
+ exit_error(_('Invalid download mode'));
}
// Local Variables:
-----------------------------------------------------------------------
Summary of changes:
src/www/frs/download.php | 11 +++++++++++
1 file changed, 11 insertions(+)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits