1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add uri_file_decode to handle + in file names.

This commit is contained in:
Pāvels Nadtočajevs
2025-04-07 22:49:57 +03:00
parent af2c713971
commit 9abe2e5294
13 changed files with 52 additions and 10 deletions

View File

@@ -2147,7 +2147,7 @@ void WaylandThread::_wl_data_device_on_drop(void *data, struct wl_data_device *w
msg->files = String::utf8((const char *)list_data.ptr(), list_data.size()).split("\r\n", false);
for (int i = 0; i < msg->files.size(); i++) {
msg->files.write[i] = msg->files[i].replace("file://", "").uri_decode();
msg->files.write[i] = msg->files[i].replace("file://", "").uri_file_decode();
}
wayland_thread->push_message(msg);