diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2023-11-20 18:25:30 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2023-11-20 18:25:30 +0100 |
commit | 87ba373882f475f02a524a120b59ea9fcccf14e5 (patch) | |
tree | 9ad3592a2dc3561b9919408869e38b07247ee9e3 /src/BatchImport.vala | |
parent | d0aaad443a88968dc61172c050084d3d9faa7602 (diff) |
New upstream version 0.32.3upstream/0.32.3
Diffstat (limited to 'src/BatchImport.vala')
-rw-r--r-- | src/BatchImport.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/BatchImport.vala b/src/BatchImport.vala index 90ccba8..ae4f573 100644 --- a/src/BatchImport.vala +++ b/src/BatchImport.vala @@ -1508,7 +1508,13 @@ private class WorkSniffer : BackgroundImportJob { FileToPrepare file_a = (FileToPrepare) a; FileToPrepare file_b = (FileToPrepare) b; string sa = file_a.get_path(); + if (!sa.validate()) { + sa = Uri.escape_string(sa, Uri.RESERVED_CHARS_ALLOWED_IN_PATH, true); + } string sb = file_b.get_path(); + if (!sb.validate()) { + sb = Uri.escape_string(sa, Uri.RESERVED_CHARS_ALLOWED_IN_PATH, true); + } return utf8_cs_compare(sa, sb); }); |