From 7d8b8129a830537ed4c4156fdba9aa8ca19e9892 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 2 Jun 2015 11:46:09 +0000 Subject: [PATCH] * update download.php redirector --- website/download.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/website/download.php b/website/download.php index 7bc554b9..423aeb87 100644 --- a/website/download.php +++ b/website/download.php @@ -3,14 +3,15 @@ $version = isset($_GET['version']) ? $_GET['version'] : '@{version}'; // default $arch = $_GET['arch']; $type = $_GET['type']; -$folder = 'https://sourceforge.net/projects/filebot/files/filebot/FileBot_'.$version; +$root = 'https://downloads.sourceforge.net/project/filebot/filebot/'; +$folder = $root.'FileBot_'.$version; $file = 'undefined'; if ($type == 'nsis') { - $folder = 'https://sourceforge.net/projects/filebot/files/filebot/HEAD'; + $folder = $root.'HEAD'; $file = 'FileBot-setup.exe'; } else if ($type == 'jar') { - $folder = 'https://sourceforge.net/projects/filebot/files/filebot/HEAD'; + $folder = $root.'HEAD'; $file = 'FileBot.jar'; } else if ($type == 'msi') $file = 'FileBot_'.$version.'_'.$arch.'.msi';