katze_array_is_a (search_engines, KATZE_TYPE_ITEM), NULL);
/* Just return if it's a javascript: or mailto: uri */
- if (g_str_has_prefix (uri, "javascript:") || g_str_has_prefix (uri, "mailto:"))
+ if (g_str_has_prefix (uri, "javascript:")
+ || g_str_has_prefix (uri, "mailto:")
+ || g_str_has_prefix (uri, "data:"))
return g_strdup (uri);
/* Add file:// if we have a local path */
if (g_path_is_absolute (uri))
{
test_input ("javascript:alert(1)", "javascript:alert(1)");
test_input ("mailto:christian@twotoasts.de", "mailto:christian@twotoasts.de");
+ test_input ("data:text/html;charset=utf-8,<title>Test</title>Test",
+ "data:text/html;charset=utf-8,<title>Test</title>Test");
}
static void