mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibJS: Fix obviously wrong \uXXXX serialization in JSONObject
This commit is contained in:
parent
349cf6ad67
commit
91db36064f
Notes:
sideshowbarker
2024-07-18 22:36:02 +09:00
Author: https://github.com/awesomekling
Commit: 91db36064f
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ String JSONObject::quote_json_string(String string)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (ch < 0x20) {
|
if (ch < 0x20) {
|
||||||
builder.append("\\u%#08x", ch);
|
builder.appendff("\\u{:04x}", ch);
|
||||||
} else {
|
} else {
|
||||||
builder.append(ch);
|
builder.append(ch);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue