fix on padding index validation for base64
This commit is contained in:
parent
9346595d80
commit
fe08794f09
|
|
@ -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 '='
|
||||
|
|
|
|||
Loading…
Reference in a new issue