You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Merge pull request #47512 from DanielKriz/bugfix/uri_encode
fix wrong encoding format in uri_encode
This commit is contained in:
@@ -3772,9 +3772,9 @@ String String::uri_encode() const {
|
|||||||
} else {
|
} else {
|
||||||
char h_Val[3];
|
char h_Val[3];
|
||||||
#if defined(__GNUC__) || defined(_MSC_VER)
|
#if defined(__GNUC__) || defined(_MSC_VER)
|
||||||
snprintf(h_Val, 3, "%hhX", ord);
|
snprintf(h_Val, 3, "%02hhX", ord);
|
||||||
#else
|
#else
|
||||||
sprintf(h_Val, "%hhX", ord);
|
sprintf(h_Val, "%02hhX", ord);
|
||||||
#endif
|
#endif
|
||||||
res += "%";
|
res += "%";
|
||||||
res += h_Val;
|
res += h_Val;
|
||||||
|
|||||||
Reference in New Issue
Block a user