You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
fix wrong encoding in uri_encode
(cherry picked from commit 13c999d9d7)
This commit is contained in:
committed by
Rémi Verschelde
parent
f3476b66c4
commit
edcb95cede
@@ -3451,9 +3451,9 @@ String String::http_escape() const {
|
||||
} else {
|
||||
char h_Val[3];
|
||||
#if defined(__GNUC__) || defined(_MSC_VER)
|
||||
snprintf(h_Val, 3, "%hhX", ord);
|
||||
snprintf(h_Val, 3, "%02hhX", ord);
|
||||
#else
|
||||
sprintf(h_Val, "%hhX", ord);
|
||||
sprintf(h_Val, "%02hhX", ord);
|
||||
#endif
|
||||
res += "%";
|
||||
res += h_Val;
|
||||
|
||||
Reference in New Issue
Block a user