aboutsummaryrefslogtreecommitdiffstats
path: root/embed/webkit
diff options
context:
space:
mode:
authorJan Michael C. Alonzo <jmalonzo@src.gnome.org>2007-11-13 06:04:04 +0800
committerJan Michael C. Alonzo <jmalonzo@src.gnome.org>2007-11-13 06:04:04 +0800
commit7ceba0533fa430d7d84b08537f05f72ba56cf7e7 (patch)
tree8f25402e9c51c6ce3fbb83cab76afe663bcd80b7 /embed/webkit
parent37ac990f35a9c94d37e79aaeedbb14c6f38afdbd (diff)
downloadgsoc2013-epiphany-7ceba0533fa430d7d84b08537f05f72ba56cf7e7.tar
gsoc2013-epiphany-7ceba0533fa430d7d84b08537f05f72ba56cf7e7.tar.gz
gsoc2013-epiphany-7ceba0533fa430d7d84b08537f05f72ba56cf7e7.tar.bz2
gsoc2013-epiphany-7ceba0533fa430d7d84b08537f05f72ba56cf7e7.tar.lz
gsoc2013-epiphany-7ceba0533fa430d7d84b08537f05f72ba56cf7e7.tar.xz
gsoc2013-epiphany-7ceba0533fa430d7d84b08537f05f72ba56cf7e7.tar.zst
gsoc2013-epiphany-7ceba0533fa430d7d84b08537f05f72ba56cf7e7.zip
Fix: http being appended to 'about' pages. (Bug #496136)
svn path=/trunk/; revision=7683
Diffstat (limited to 'embed/webkit')
-rw-r--r--embed/webkit/webkit-embed.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/embed/webkit/webkit-embed.cpp b/embed/webkit/webkit-embed.cpp
index 742fe99c3..fff4e6f4b 100644
--- a/embed/webkit/webkit-embed.cpp
+++ b/embed/webkit/webkit-embed.cpp
@@ -263,10 +263,11 @@ impl_load (EphyEmbed *embed,
* and lock badly. I copied this function from WebKit's
* GdkLauncher.
*/
- if (strncmp ("http://", url, 7) != 0 &&
+ if (strncmp ("about:", url, 6) != 0 &&
+ strncmp ("http://", url, 7) != 0 &&
strncmp ("https://", url, 8) != 0 &&
- strncmp ("file://", url, 7) != 0 &&
- strncmp ("ftp://", url, 6) != 0)
+ strncmp ("file://", url, 7) != 0 &&
+ strncmp ("ftp://", url, 6) != 0)
effective_url = g_strconcat ("http://", url, NULL);
else
effective_url = g_strdup (url);