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:
@ -350,7 +350,7 @@ Error GDScriptWorkspace::parse_local_script(const String &p_path) {
|
||||
String GDScriptWorkspace::get_file_path(const String &p_uri) const {
|
||||
String path = p_uri;
|
||||
path = path.replace(root_uri + "/", "res://");
|
||||
path = path.http_unescape();
|
||||
path = path.uri_decode();
|
||||
return path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user