File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -867,7 +867,7 @@ sub _send {
867
867
# surrogate pair expected
868
868
if ($@ ) {
869
869
# replace u+D800 to u+DFFF (reserved utf-16 low/high surrogates)
870
- $body =~ s /\\ ud[89a-f][0-9a-f]{2}/ \\ ufffd/ gmxi ;
870
+ $body =~ s /\\ ud[89a-f][0-9a-f]{2}/ \\ ufffd/ gmxio ;
871
871
eval {
872
872
$result = $json_decoder -> decode($body );
873
873
};
@@ -1206,7 +1206,7 @@ sub _read_socket_do {
1206
1206
if ($remaining < $length ) { $length = $remaining ; }
1207
1207
while ($length > 0 && $sock -> read (my $buf , $length )) {
1208
1208
# replace u+D800 to u+DFFF (reserved utf-16 low/high surrogates)
1209
- $buf =~ s /\\ ud[89a-f][0-9a-f]{2}/ \\ ufffd/ gmxi ;
1209
+ $buf =~ s /\\ ud[89a-f][0-9a-f]{2}/ \\ ufffd/ gmxio ;
1210
1210
$json_decoder -> incr_parse($buf );
1211
1211
$remaining = $remaining -$length ;
1212
1212
if ($remaining < $length ) { $length = $remaining ; }
You can’t perform that action at this time.
0 commit comments