[Xfce4-commits] <midori:master> Do not run scripts or styles on blank or special pages

Christian Dywan noreply at xfce.org
Fri Jan 8 00:18:02 CET 2010


Updating branch refs/heads/master
         to 7f0141d657892b135d82d707557dfcd7ce574954 (commit)
       from fbfe0705882a13eba9cea393097f66a829597a14 (commit)

commit 7f0141d657892b135d82d707557dfcd7ce574954
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Jan 7 21:10:14 2010 +0100

    Do not run scripts or styles on blank or special pages

 panels/midori-addons.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/panels/midori-addons.c b/panels/midori-addons.c
index 091e590..8806195 100644
--- a/panels/midori-addons.c
+++ b/panels/midori-addons.c
@@ -807,8 +807,12 @@ midori_web_widget_context_ready_cb (GtkWidget*         web_widget,
     gchar* message;
 
     uri = katze_object_get_string (web_widget, "uri");
-    if (!uri)
+    /* Don't run scripts or styles on blank or special pages */
+    if (!(uri && *uri && strncmp (uri, "about:", 6)))
+    {
+        g_free (uri);
         return;
+    }
 
     elements = addons->elements;
     while (elements)



More information about the Xfce4-commits mailing list