diff options
author | Xan Lopez <xlopez@igalia.com> | 2011-06-10 08:32:51 +0800 |
---|---|---|
committer | Xan Lopez <xlopez@igalia.com> | 2011-06-10 08:32:51 +0800 |
commit | aca7c30d20069031c132b1aeb34b62bfd445153e (patch) | |
tree | 6de5078c5eb26b6f17ced1ff2232ce1016fb51a4 /embed/ephy-embed-utils.c | |
parent | d732145429c8366b98e82c08ba092a6514ef913b (diff) | |
download | gsoc2013-epiphany-aca7c30d20069031c132b1aeb34b62bfd445153e.tar gsoc2013-epiphany-aca7c30d20069031c132b1aeb34b62bfd445153e.tar.gz gsoc2013-epiphany-aca7c30d20069031c132b1aeb34b62bfd445153e.tar.bz2 gsoc2013-epiphany-aca7c30d20069031c132b1aeb34b62bfd445153e.tar.lz gsoc2013-epiphany-aca7c30d20069031c132b1aeb34b62bfd445153e.tar.xz gsoc2013-epiphany-aca7c30d20069031c132b1aeb34b62bfd445153e.tar.zst gsoc2013-epiphany-aca7c30d20069031c132b1aeb34b62bfd445153e.zip |
ephy-embed-utils: make URI normalization for about: generic
Diffstat (limited to 'embed/ephy-embed-utils.c')
-rw-r--r-- | embed/ephy-embed-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c index 2ca6d7689..2bf0e1f11 100644 --- a/embed/ephy-embed-utils.c +++ b/embed/ephy-embed-utils.c @@ -119,9 +119,9 @@ ephy_embed_utils_normalize_address (const char *address) * handled internally by WebKit and mean "empty * document". */ - if (!g_ascii_strcasecmp (address, "about:plugins")) - effective_address = g_strdup (EPHY_ABOUT_SCHEME":plugins"); - else + if (g_str_has_prefix (address, "about:") && !g_str_equal (address, "about:blank")) { + effective_address = g_strconcat (EPHY_ABOUT_SCHEME, address + strlen ("about"), NULL); + } else effective_address = g_strdup (address); } |