[Xfce4-commits] <midori:master> Fix loading of lists from https

Christian Dywan noreply at xfce.org
Sun May 15 13:18:01 CEST 2011


Updating branch refs/heads/master
         to 6885c35886b7b3b546acb3d2fcdbee82cabb0a96 (commit)
       from 0a9420ec320afe4a40e43eac18e19b9a2d550716 (commit)

commit 6885c35886b7b3b546acb3d2fcdbee82cabb0a96
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Thu May 12 11:30:26 2011 -0400

    Fix loading of lists from https
    
    Fixes: https://bugs.launchpad.net/midori/+bug/699978

 extensions/adblock.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/extensions/adblock.c b/extensions/adblock.c
index acc74a2..a6acc3e 100644
--- a/extensions/adblock.c
+++ b/extensions/adblock.c
@@ -29,9 +29,9 @@
     (__filter && (g_str_has_prefix (__filter, "http") \
                || g_str_has_prefix (__filter, "file")))
 #define ADBLOCK_FILTER_SET(__filter,__active) \
-    filter[4] = __active ? (__filter[5] == ':' ? 's' : ':') : '-'
+    __filter[4] = __active ? (__filter[5] == ':' ? 's' : ':') : '-'
 #define ADBLOCK_FILTER_IS_SET(__filter) \
-    filter[4] != '-'
+    (__filter[4] != '-' && __filter[5] != '-')
 #ifdef G_ENABLE_DEBUG
     #define adblock_debug(dmsg, darg1, darg2) \
         do { if (debug == 1) g_debug (dmsg, darg1, darg2); } while (0)
@@ -119,7 +119,7 @@ adblock_get_filename_for_uri (const gchar* uri)
     gchar* folder;
     gchar* path;
 
-    if (strchr (uri + 4,'-'))
+    if (!ADBLOCK_FILTER_IS_SET (uri))
         return NULL;
 
     if (!strncmp (uri, "file", 4))



More information about the Xfce4-commits mailing list