[epiphany] ephy-embed-utils: make URI normalization for about: generic



commit aca7c30d20069031c132b1aeb34b62bfd445153e
Author: Xan Lopez <xlopez igalia com>
Date:   Fri Jun 10 02:32:51 2011 +0200

    ephy-embed-utils: make URI normalization for about: generic

 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 2ca6d76..2bf0e1f 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);
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]