From fe08794f096ff1b121b7d7947ae0eed1cb923a2a Mon Sep 17 00:00:00 2001 From: "lucas.hipolito" Date: Thu, 10 Jul 2025 11:00:22 +0200 Subject: [PATCH] fix on padding index validation for base64 --- src/modules/Elsa.IO/Extensions/ContentTypeExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Elsa.IO/Extensions/ContentTypeExtensions.cs b/src/modules/Elsa.IO/Extensions/ContentTypeExtensions.cs index 9eac5a42a..45bf158ef 100644 --- a/src/modules/Elsa.IO/Extensions/ContentTypeExtensions.cs +++ b/src/modules/Elsa.IO/Extensions/ContentTypeExtensions.cs @@ -102,7 +102,7 @@ public static class ContentTypeExtensions switch (paddingIndex) { // Padding cannot be at index 0 - case <= 0: + case 0: // Padding must be at the end case > 0 when paddingIndex < s.Length - 2: // All characters after first '=' must also be '='