epiphany/59950.diff

32 lines
825 B
Diff

Index: epiphany-2.19.6/embed/ephy-embed.c
===================================================================
--- epiphany-2.19.6.orig/embed/ephy-embed.c
+++ epiphany-2.19.6/embed/ephy-embed.c
@@ -25,6 +25,8 @@
#include "ephy-embed-type-builtins.h"
#include "ephy-marshal.h"
+#include <string.h>
+
static void ephy_embed_base_init (gpointer g_class);
GType
@@ -438,8 +440,15 @@ void
ephy_embed_load_url (EphyEmbed *embed,
const char *url)
{
- EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
- iface->load_url (embed, url);
+ char *protocol;
+ protocol=malloc(strlen(url)+1);
+ strcpy(protocol,url);
+ protocol=strtok(protocol,":");
+ if (strcasecmp(protocol,"gopher")!=0)
+ {
+ EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
+ iface->load_url (embed, url);
+ }
}
/**