aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRémi Verschelde2018-03-13 14:01:21 +0100
committerGitHub2018-03-13 14:01:21 +0100
commita5476f85629ca432e7434419fdeb5f38de68c207 (patch)
treef8fbff57341bc6ada8a12f517273d80e5b41380e /drivers
parentc81356153e2381c2c3c909b0ca2774899bba7a80 (diff)
parent7e5b10b7d39104055dd4d6dc6c35f1493847c994 (diff)
downloadgodot-a5476f85629ca432e7434419fdeb5f38de68c207.tar.gz
godot-a5476f85629ca432e7434419fdeb5f38de68c207.tar.zst
godot-a5476f85629ca432e7434419fdeb5f38de68c207.zip
Diffstat (limited to 'drivers')
-rw-r--r--drivers/unix/dir_access_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/dir_access_unix.cpp b/drivers/unix/dir_access_unix.cpp
index 394443151..5a4be6df4 100644
--- a/drivers/unix/dir_access_unix.cpp
+++ b/drivers/unix/dir_access_unix.cpp
@@ -244,7 +244,7 @@ static void _get_drives(List<String> *list) {
// Parse only file:// links
if (strncmp(string, "file://", 7) == 0) {
// Strip any unwanted edges on the strings and push_back if it's not a duplicate
- String fpath = String(string + 7).strip_edges();
+ String fpath = String(string + 7).strip_edges().split_spaces()[0].percent_decode();
if (!list->find(fpath)) {
list->push_back(fpath);
}