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, 6.1 has been updated
via 6d15d20f7b21b61db9679f42bda99343d35ff9f0 (commit)
from 0b406926ccd452724386b09b827c5f13d0f5ed46 (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=6d15d20f7b21b61db9679f42bda99343d35ff9f0
commit 6d15d20f7b21b61db9679f42bda99343d35ff9f0
Author: Franck Villaume <[email protected]>
Date: Thu May 24 09:24:40 2018 +0000
fix URL FRS release download link
diff --git a/src/common/frs/views/listpackages.php
b/src/common/frs/views/listpackages.php
index c1498b0..51dae84 100644
--- a/src/common/frs/views/listpackages.php
+++ b/src/common/frs/views/listpackages.php
@@ -132,7 +132,7 @@ EOS;
$ziplink = '';
if (class_exists('ZipArchive')) {
if
(file_exists($FRSPackage->getReleaseZipPath($package_release_id))) {
- $ziplink .= html_e('span',
array('class' => 'frs-zip-release'),
util_make_link('/frs/download.php/zip/'.$FRSPackageRelease->getID().'/'.$FRSPackage->getReleaseZipName($FRSPackageRelease->getID()),
+ $ziplink .= html_e('span',
array('class' => 'frs-zip-release'),
util_make_link('/frs/download.php/zip/'.$FRSPackageRelease->getID().'/'.urlencode($FRSPackage->getReleaseZipName($FRSPackageRelease->getID())),
$HTML->getZipPic(_('Download
this release as ZIP.').' '._('This link always points to this release as a ZIP
file.'))), false);
}
}
diff --git a/src/www/frs/download.php b/src/www/frs/download.php
index 320dc81..9727d8b 100644
--- a/src/www/frs/download.php
+++ b/src/www/frs/download.php
@@ -204,7 +204,7 @@ case 'zip':
// 123 -> release_id
// foo.tar.gz -> file name
$release_id = $expl_pathinfo[4];
- $file_name = $expl_pathinfo[5];
+ $file_name = urldecode($expl_pathinfo[5]);
$frsr = frsrelease_get_object($release_id);
$frsp = $frsr->FRSPackage;
-----------------------------------------------------------------------
Summary of changes:
src/common/frs/views/listpackages.php | 2 +-
src/www/frs/download.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits