mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Unify URI encoding/decoding and add to C#
http_escape and percent_encode have been unified into uri_encode, and http_unescape and percent_decode have been unified into uri_decode.
This commit is contained in:
parent
a3e3bf8227
commit
e829b7aee4
15 changed files with 81 additions and 142 deletions
|
|
@ -232,7 +232,7 @@ static void _get_drives(List<String> *list) {
|
|||
// Parse only file:// links
|
||||
if (strncmp(string, "file://", 7) == 0) {
|
||||
// Strip any unwanted edges on the strings and push_back if it's not a duplicate
|
||||
String fpath = String(string + 7).strip_edges().split_spaces()[0].percent_decode();
|
||||
String fpath = String(string + 7).strip_edges().split_spaces()[0].uri_decode();
|
||||
if (!list->find(fpath)) {
|
||||
list->push_back(fpath);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue