summaryrefslogtreecommitdiff
path: root/src/BatchImport.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-11-20 18:26:07 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-11-20 18:26:07 +0100
commit445dc18bf3e37044e17083fe76f76c17ceb6a0d7 (patch)
tree315f7cf2a7934b0ecf45ac2caa3c87949a90dfc4 /src/BatchImport.vala
parent918f560d56129ed03f19d843ea2efd7cb4b23821 (diff)
parent394326a81d1248bbc5b1a35a8ae623c65ef6a9ea (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/BatchImport.vala')
-rw-r--r--src/BatchImport.vala6
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);
});