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
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
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);