Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordroy2014-06-26 18:43:00 +0000
committerdroy2014-06-26 18:43:00 +0000
commit33884fab73b0340d456ca64c6b015c74c3b16e6c (patch)
tree07b886176aae55573170f9e7bc65f0490dcd009d
parented4aadb9fffce38b76e91e0c1849f3d5e78dca5b (diff)
downloaddownloads-33884fab73b0340d456ca64c6b015c74c3b16e6c.tar.gz
downloads-33884fab73b0340d456ca64c6b015c74c3b16e6c.tar.xz
downloads-33884fab73b0340d456ca64c6b015c74c3b16e6c.zip
Bug 437864: download.php script with &format=xml now downloads "archive"
(instead of empty XML list Signed-off-by: droy <denis.roy@eclipse.org>
-rwxr-xr-xdownload.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/download.php b/download.php
index 8e23d680..a89ab6ca 100755
--- a/download.php
+++ b/download.php
@@ -352,8 +352,16 @@
exit;
}
else {
- header("Location: " . $archiveBaseURL . $_file);
- exit;
+ # File exists on archive.eclipse.org. No mirrors, or redirect to the actual file.
+ if($_format == "xml") {
+ $app->sendXMLHeader();
+ include("content/en_mir_list_xml.php");
+ return false;
+ }
+ else {
+ header("Location: " . $archiveBaseURL . $_file);
+ exit;
+ }
}
}
}

Back to the top