mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Add uri_file_decode
to handle +
in file names.
This commit is contained in:
parent
af2c713971
commit
9abe2e5294
13 changed files with 52 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue