Make HardwareBuild checking for updates case insensitive.

pull/490/head
Christopher Young 2016-09-19 18:27:19 -04:00
rodzic 31bbf1bc1b
commit dc62a3abba
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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
}