将 URI 中的错误代理对编码为 U+FFFD (#4329)
This commit is contained in:
@@ -186,8 +186,8 @@ public final class NetworkUtils {
|
||||
}
|
||||
}
|
||||
|
||||
// Invalid surrogate pair, encode as '?'
|
||||
builder.append("%3F");
|
||||
// Invalid surrogate pair, encode as U+FFFD (replacement character)
|
||||
encodeCodePoint(builder, 0xfffd);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user