Unescape URLs with spaces, not only with %

This commit is contained in:
Paweł Forysiuk 2011-01-30 21:37:06 +01:00 committed by Christian Dywan
parent adf1f3c25b
commit 5acdb5516d

View file

@ -835,7 +835,7 @@ sokoke_magic_uri (const gchar* uri)
gchar*
sokoke_uri_unescape_string (const gchar* uri)
{
if (strchr (uri,'%'))
if (strchr (uri,'%') || strchr (uri, ' '))
{
/* Preserve %20 for pasting URLs into other windows */
gchar* unescaped = g_uri_unescape_string (uri, "+");