-
Marc-André Lureau authored
The previous implementation of g_uri_unescape_segment() allowed non-utf8 decoded characters. uri_decoder() allows it too with FLAGS_ENCODED (I think it's abusing a bit the user-facing flags for some internal decoding behaviour) However, it didn't allow \0 in the decoded string. Let's have an extra check for that, outside of uri_decoder(). Fixes: d83d68d6 Reported-by: Matthias Clasen <mclasen@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
22fe3b02