{
/* Do we have a domain, ip address or localhost? */
search = strchr (uri, ':');
- if (search && search[0] && !g_ascii_isalpha (search[1]))
+ if (search && search[0] &&
+ !g_ascii_isalpha (search[1]) && search[1] != ' ')
if (!strchr (search, '.'))
return g_strconcat ("http://", uri, NULL);
if (!strcmp (uri, "localhost") || g_str_has_prefix (uri, "localhost/"))
test_input ("g de.po verbose", NULL);
test_input ("sm de.po verbose", SM "de.po verbose");
test_input ("javascript:alert(1)", "javascript:alert(1)");
+ test_input ("sm warning: configure /dev/net: virtual",
+ SM "warning: configure /dev/net: virtual");
return 0;
}