uri: add illegal_characters argument to unescape_bytes

It's not clear to me why this argument was excluded in the first place,
and Dan doesn't remember either. At least for consistency with
unescape_string, add it.

See also:
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1574#note_867283

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau
2020-07-15 21:57:41 +04:00
parent 5ca8e51ae4
commit 4c6654dcd4
4 changed files with 21 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ test_bytes (const guint8 *data,
if (size > G_MAXSSIZE)
return;
unescaped_bytes = g_uri_unescape_bytes ((const gchar *) data, (gssize) size);
unescaped_bytes = g_uri_unescape_bytes ((const gchar *) data, (gssize) size, NULL);
if (unescaped_bytes == NULL)
return;