Fix get_drive (bookmarks) in linux not working
(cherry picked from commit 7e5b10b7d3
)
This commit is contained in:
parent
5eebe51014
commit
55a66efa38
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ static void _get_drives(List<String> *list) {
|
||||||
// Parse only file:// links
|
// Parse only file:// links
|
||||||
if (strncmp(string, "file://", 7) == 0) {
|
if (strncmp(string, "file://", 7) == 0) {
|
||||||
// Strip any unwanted edges on the strings and push_back if it's not a duplicate
|
// 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)) {
|
if (!list->find(fpath)) {
|
||||||
list->push_back(fpath);
|
list->push_back(fpath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue