diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2023-11-20 18:25:49 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2023-11-20 18:25:49 +0100 |
commit | 394326a81d1248bbc5b1a35a8ae623c65ef6a9ea (patch) | |
tree | 315f7cf2a7934b0ecf45ac2caa3c87949a90dfc4 /src/Thumbnail.vala | |
parent | 918f560d56129ed03f19d843ea2efd7cb4b23821 (diff) | |
parent | 87ba373882f475f02a524a120b59ea9fcccf14e5 (diff) |
Update upstream source from tag 'upstream/0.32.3'
Update to upstream version '0.32.3'
with Debian dir e5e2a77e8650a79f6e85cccb15c070434b0fd667
Diffstat (limited to 'src/Thumbnail.vala')
-rw-r--r-- | src/Thumbnail.vala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Thumbnail.vala b/src/Thumbnail.vala index 51d2612..54fe361 100644 --- a/src/Thumbnail.vala +++ b/src/Thumbnail.vala @@ -194,6 +194,13 @@ public class Thumbnail : MediaSourceItem { public static int64 filename_ascending_comparator(void *a, void *b) { string path_a = ((Thumbnail *) a)->media.get_file().get_basename().down(); string path_b = ((Thumbnail *) b)->media.get_file().get_basename().down(); + if (!path_a.validate()) { + path_a = Uri.escape_string(path_a, Uri.RESERVED_CHARS_ALLOWED_IN_PATH, true); + } + + if (!path_b.validate()) { + path_b = Uri.escape_string(path_b, Uri.RESERVED_CHARS_ALLOWED_IN_PATH, true); + } int64 result = strcmp(path_a.collate_key_for_filename(), path_b.collate_key_for_filename()); return (result != 0) ? result : photo_id_ascending_comparator(a, b); |