From dbc3b8517da24bbf6c29e11c12be98a2b61b2b8f Mon Sep 17 00:00:00 2001 From: masterkaos Date: Fri, 30 Jun 2017 15:27:16 -0400 Subject: [PATCH] Fix for allowing case-insensitive sha256 checksum --- src/NAppUpdate.Framework/Tasks/FileUpdateTask.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NAppUpdate.Framework/Tasks/FileUpdateTask.cs b/src/NAppUpdate.Framework/Tasks/FileUpdateTask.cs index 3830f2bf..9f7c339c 100644 --- a/src/NAppUpdate.Framework/Tasks/FileUpdateTask.cs +++ b/src/NAppUpdate.Framework/Tasks/FileUpdateTask.cs @@ -59,7 +59,7 @@ public override void Prepare(Sources.IUpdateSource source) if (!string.IsNullOrEmpty(Sha256Checksum)) { string checksum = FileChecksum.GetSHA256Checksum(_tempFile); - if (!checksum.Equals(Sha256Checksum)) + if (!checksum.Equals(Sha256Checksum, StringComparison.InvariantCultureIgnoreCase)) throw new UpdateProcessFailedException(string.Format("FileUpdateTask: Checksums do not match; expected {0} but got {1}", Sha256Checksum, checksum)); }