[grilo-plugins] local-metadata: fix case sensitive blacklist words



commit d6cc321a71247635107bab13ac76bfb1828b9956
Author: Victor Toso <me victortoso com>
Date:   Thu Jun 26 23:35:22 2014 -0300

    local-metadata: fix case sensitive blacklist words
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732261

 src/local-metadata/grl-local-metadata.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/local-metadata/grl-local-metadata.c b/src/local-metadata/grl-local-metadata.c
index fcff831..9b9fae1 100644
--- a/src/local-metadata/grl-local-metadata.c
+++ b/src/local-metadata/grl-local-metadata.c
@@ -24,6 +24,7 @@
 #include "config.h"
 #endif
 
+#define _GNU_SOURCE
 #include <string.h>
 #include <stdlib.h>
 
@@ -255,7 +256,7 @@ video_sanitise_string (const gchar *str)
   for (i = 0; video_blacklisted_words[i]; i++) {
     gchar *end;
 
-    end = strstr (line, video_blacklisted_words[i]);
+    end = strcasestr (line, video_blacklisted_words[i]);
     if (end) {
       return g_strndup (line, end - line);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]