summaryrefslogtreecommitdiffstats
path: root/drivers/unix/dir_access_unix.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-01-28 14:48:59 +0100
committerGitHub <noreply@github.com>2021-01-28 14:48:59 +0100
commite50422d01cfc3b97ee259079d7fe88528f9dccbd (patch)
tree066731a9a3a000b97df58d33dd18841ef7f0b234 /drivers/unix/dir_access_unix.cpp
parent726967f45318359d95e3b0c359e088ca6d430292 (diff)
parente829b7aee48cfc988abea5a42bdbf02638a16513 (diff)
downloadredot-engine-e50422d01cfc3b97ee259079d7fe88528f9dccbd.tar.gz
Merge pull request #43978 from aaronfranke/cs-string
Unify URI encoding/decoding, handle spaces-are-pluses, and handle hex/bin prefix automatically
Diffstat (limited to 'drivers/unix/dir_access_unix.cpp')
-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 5dc039afd9..eda929850c 100644
--- a/drivers/unix/dir_access_unix.cpp
+++ b/drivers/unix/dir_access_unix.cpp
@@ -232,7 +232,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().split_spaces()[0].percent_decode();
+ String fpath = String(string + 7).strip_edges().split_spaces()[0].uri_decode();
if (!list->find(fpath)) {
list->push_back(fpath);
}