mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
gio/tests: unescape the nonce_file value
The raw value is escaped according to D-Bus rules. This is probablematic for Windows backslashed paths. We can use URI unescaping, it seems that's what gdbusaddress.c is doing too. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
e34795b431
commit
7886283750
@ -1724,7 +1724,7 @@ test_nonce_tcp (void)
|
||||
s = strstr (address, "noncefile=");
|
||||
g_assert (s != NULL);
|
||||
s += sizeof "noncefile=" - 1;
|
||||
nonce_file = g_strdup (s);
|
||||
nonce_file = g_uri_unescape_string (s, NULL); /* URI-unescaping should be good enough */
|
||||
|
||||
/* First try invalid data in the nonce file - this will actually
|
||||
* make the client send this and the server will reject it. The way
|
||||
|
Loading…
Reference in New Issue
Block a user