29 lines
732 B
Diff
29 lines
732 B
Diff
|
diff -pruN epiphany-1.5.4-old/embed/ephy-embed.c epiphany-1.5.4/embed/ephy-embed.c
|
||
|
--- epiphany-1.5.4-old/embed/ephy-embed.c Thu Jan 6 19:14:41 2005
|
||
|
+++ epiphany-1.5.4/embed/ephy-embed.c Fri Jan 14 12:37:01 2005
|
||
|
@@ -28,6 +28,8 @@
|
||
|
#include "mozilla-embed-single.h"
|
||
|
#include "mozilla-embed.h"
|
||
|
|
||
|
+#include <string.h>
|
||
|
+
|
||
|
static void ephy_embed_base_init (gpointer g_class);
|
||
|
|
||
|
GType
|
||
|
@@ -329,8 +331,15 @@ void
|
||
|
ephy_embed_load_url (EphyEmbed *embed,
|
||
|
const char *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);
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
/**
|