Merge pull request #16895 from Noshyaar/bmk

Fix get_drive (bookmarks) in linux not working
This commit is contained in:
Rémi Verschelde 2018-03-13 14:01:21 +01:00 committed by GitHub
commit a5476f8562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}