From dc62a3abba4caab7341ba206f71dc36594a5f4f1 Mon Sep 17 00:00:00 2001 From: Christopher Young Date: Mon, 19 Sep 2016 18:27:19 -0400 Subject: [PATCH] Make HardwareBuild checking for updates case insensitive. --- main/managementinterface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/managementinterface.go b/main/managementinterface.go index b3741f8b..e16d6092 100644 --- a/main/managementinterface.go +++ b/main/managementinterface.go @@ -323,7 +323,7 @@ func handleUpdatePostRequest(w http.ResponseWriter, r *http.Request) { } defer file.Close() // Special hardware builds. Don't allow an update unless the filename contains the hardware build name. - if (len(globalStatus.HardwareBuild) > 0) && !strings.Contains(handler.Filename, globalStatus.HardwareBuild) { + if (len(globalStatus.HardwareBuild) > 0) && !strings.Contains(strings.ToLower(handler.Filename), strings.ToLower(globalStatus.HardwareBuild)) { w.WriteHeader(404) return }