diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-05-17 15:22:12 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-05-17 15:22:12 -0300 |
commit | 2bef1fef811e3f553f18a6dac1c32e4dfff7ae13 (patch) | |
tree | 87b0158c2e280209756f21b4347ff12de2e7443c /nonprism/grilo-plugins/local-metadata-crash.patch | |
parent | e5013c4a19f8393a42afb5d0275fb3c6f13b9e47 (diff) |
grilo-plugins-0.2.14-3.nonprism1: local metadata plugin crashes (FS#44724 -> https://bugs.archlinux.org/task/44724)
Diffstat (limited to 'nonprism/grilo-plugins/local-metadata-crash.patch')
-rw-r--r-- | nonprism/grilo-plugins/local-metadata-crash.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nonprism/grilo-plugins/local-metadata-crash.patch b/nonprism/grilo-plugins/local-metadata-crash.patch new file mode 100644 index 000000000..edc2b6dff --- /dev/null +++ b/nonprism/grilo-plugins/local-metadata-crash.patch @@ -0,0 +1,31 @@ +From 85fc7cbf831e914456623a2f7a9efbe81919bf4d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= <olivier.crete@collabora.com> +Date: Tue, 28 Apr 2015 19:46:54 -0400 +Subject: local-metadata: Ignore sanitization if the whole filename is + blacklisted + +If the whole filename ends up blacklisted, then just take it as-is. + +https://bugzilla.gnome.org/show_bug.cgi?id=748604 + +diff --git a/src/local-metadata/grl-local-metadata.c b/src/local-metadata/grl-local-metadata.c +index adc81f0..45856be 100644 +--- a/src/local-metadata/grl-local-metadata.c ++++ b/src/local-metadata/grl-local-metadata.c +@@ -272,6 +272,13 @@ video_sanitise_string (const gchar *str) + if (*line_end != '\0') { + line_end = g_utf8_find_prev_char (line, line_end); + ++ ++ /* If everything in the string is blacklisted, just ignore ++ * the blackisting logic. ++ */ ++ if (line_end == NULL) ++ return g_strdup (str); ++ + /* After removing substring with blacklisted word, ignore non alpha-numeric + * char in the end of the sanitised string */ + while (g_unichar_isalnum (*line_end) == FALSE && +-- +cgit v0.10.2 + |