From 9782723b1daae2b048ddf49d3eee9780269016f3 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sat, 28 Nov 2015 19:15:29 -0700 Subject: [PATCH] Add a missing = so that the file is only provided as a download when the content type is set to application/octet-stream in the url. --- app/provision/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/provision/index.php b/app/provision/index.php index 366ed87183..efd76559bd 100644 --- a/app/provision/index.php +++ b/app/provision/index.php @@ -283,7 +283,7 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0); //deliver the customized config over HTTP/HTTPS //need to make sure content-type is correct - if ($_REQUEST['content_type'] = 'application/octet-stream') { + if ($_REQUEST['content_type'] == 'application/octet-stream') { $file_name = str_replace("{\$mac}",$mac,$file); header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream');