diff options
| author | droy | 2014-06-26 18:43:00 +0000 |
|---|---|---|
| committer | droy | 2014-06-26 18:43:00 +0000 |
| commit | 33884fab73b0340d456ca64c6b015c74c3b16e6c (patch) | |
| tree | 07b886176aae55573170f9e7bc65f0490dcd009d | |
| parent | ed4aadb9fffce38b76e91e0c1849f3d5e78dca5b (diff) | |
| download | downloads-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-x | download.php | 12 |
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; + } } } } |
