printers: avoid crashes when searching for printers w/ special chars
Since the dialog considers just the hostname part from the URL, unespacing the url avoids a backend crash. https://bugzilla.gnome.org/show_bug.cgi?id=754248
This commit is contained in:
parent
a81a5994e4
commit
ac6b1acc1f
1 changed files with 5 additions and 1 deletions
|
@ -1386,7 +1386,11 @@ parse_uri (const gchar *uri,
|
|||
*port = atoi (position + 1);
|
||||
}
|
||||
|
||||
*host = resulting_host;
|
||||
*host = g_uri_unescape_string (resulting_host,
|
||||
G_URI_RESERVED_CHARS_GENERIC_DELIMITERS
|
||||
G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS);
|
||||
|
||||
g_free (resulting_host);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue