mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-03 22:59:39 +02:00
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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user