mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 06:31:13 +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
|
|
@ -410,7 +410,7 @@ Error OS_LinuxBSD::move_to_trash(const String &p_path) {
|
|||
OS::Time time = OS::get_singleton()->get_time(false);
|
||||
String timestamp = vformat("%04d-%02d-%02dT%02d:%02d:", date.year, date.month, date.day, time.hour, time.min);
|
||||
timestamp = vformat("%s%02d", timestamp, time.sec); // vformat only supports up to 6 arguments.
|
||||
String trash_info = "[Trash Info]\nPath=" + p_path.http_escape() + "\nDeletionDate=" + timestamp + "\n";
|
||||
String trash_info = "[Trash Info]\nPath=" + p_path.uri_encode() + "\nDeletionDate=" + timestamp + "\n";
|
||||
{
|
||||
Error err;
|
||||
FileAccess *file = FileAccess::open(trash_path + "/info/" + file_name + ".trashinfo", FileAccess::WRITE, &err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue