Skip to content

Commit

Permalink
Fixed ContentDisposition.Size parsing to use InvariantCulture
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Jun 22, 2024
1 parent 863881c commit bfec572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MimeKit/ContentDisposition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ static bool IsAsciiAtom (byte c)
if (string.IsNullOrWhiteSpace (value))
return null;

if (!long.TryParse (value, out var size))
if (!long.TryParse (value, NumberStyles.None, CultureInfo.InvariantCulture, out var size))
return null;

return size;
Expand Down

0 comments on commit bfec572

Please sign in to comment.