From 3e169d0a3cc703a0a6630108a2a090590138afc9 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 6 Nov 2019 21:42:22 -0600 Subject: [PATCH] Fix download header and add download hint #30 --- src/browse.php | 2 +- src/download.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/browse.php b/src/browse.php index 79f232e..76ecabb 100644 --- a/src/browse.php +++ b/src/browse.php @@ -92,7 +92,7 @@ for ($c = 0; $c < $numResults; $c++) { $aspiration = $results[$c]['induction'] == 1 ? "Turbo" : "NA"; - echo '' . $results[$c]['uploadDate'] . '' . $results[$c]['make'] . '' . $results[$c]['code'] . '' . $results[$c]['numCylinders'] . '' . $results[$c]['displacement'] . '' . $results[$c]['compression'] . ':1' . $aspiration . '' . $results[$c]['firmware'] . '/' . $results[$c]['signature'] . '' . $results[$c]['views'] . '💾'; + echo '' . $results[$c]['uploadDate'] . '' . $results[$c]['make'] . '' . $results[$c]['code'] . '' . $results[$c]['numCylinders'] . '' . $results[$c]['displacement'] . '' . $results[$c]['compression'] . ':1' . $aspiration . '' . $results[$c]['firmware'] . '/' . $results[$c]['signature'] . '' . $results[$c]['views'] . '💾'; } echo ''; diff --git a/src/download.php b/src/download.php index 453e1b0..6a034e6 100644 --- a/src/download.php +++ b/src/download.php @@ -18,14 +18,12 @@ require "msqur.php"; if (isset($_GET['msq'])) { - header('Content-Type: application/xml'); - header('Content-Disposition: attachment; filename=' . $_GET['msq'] . '.msq'); + header('Content-Disposition: attachment; filename="' . $_GET['msq'] . '.msq"'); header('Pragma: no-cache'); echo $msqur->getMSQForDownload($_GET['msq']); } else { - include "index.php"; } ?>