if (G_LIKELY (uri))
{
- /* g_uri_unescape_segment () sometimes produces garbage */
- if (!g_utf8_validate (uri, -1, (const gchar **)&temp))
- temp[0] = '\0';
-
temp = g_utf8_strdown (uri, -1);
if ((start = strstr (temp, key)) && (start - temp))
{
if (G_LIKELY (title))
{
- /* g_uri_unescape_segment () sometimes produces garbage */
- if (!g_utf8_validate (title, -1, (const gchar **)&temp))
- temp[0] = '\0';
-
temp = g_utf8_strdown (title, -1);
if ((start = strstr (temp, key)) && (start - temp))
{