Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 1512b92

Browse files
committed
Escape unsafe strings before decoding byte[], and added a test that otherwise fails.
1 parent 445f5a2 commit 1512b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/Common/DeserializeArray.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public static string[] ParseStringArray(string value)
181181
public static byte[] ParseByteArray(string value)
182182
{
183183
if ((value = DeserializeListWithElements<TSerializer>.StripList(value)) == null) return null;
184-
if ((value = Serializer.UnescapeSafeString(value)) == null) return null;
184+
if ((value = Serializer.UnescapeString(value)) == null) return null;
185185
return value == string.Empty
186186
? new byte[0]
187187
: Convert.FromBase64String(value);

0 commit comments

Comments
 (0)