diff options
author | Dan Winship <danw@gnome.org> | 2012-12-10 22:20:59 +0100 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-12-10 22:20:59 +0100 |
commit | 93c0b8808b9cfa4cbcf3ef014385016ed8bd5038 (patch) | |
tree | f4588fe986c38b46d010728b8b2e5b937888a9cf /tests | |
parent | 64272f77902c91145f6dcbaad5919791b4bc7e36 (diff) | |
download | libsoup-93c0b8808b9cfa4cbcf3ef014385016ed8bd5038.tar.gz libsoup-93c0b8808b9cfa4cbcf3ef014385016ed8bd5038.tar.bz2 libsoup-93c0b8808b9cfa4cbcf3ef014385016ed8bd5038.zip |
soup-uri: don't decode %00 in URIs
We were accidentally decoding %00 to '\0' in URIs, causing a few
WebKit tests to fail. Leave it undecoded instead.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/uri-parsing.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/uri-parsing.c b/tests/uri-parsing.c index 166a6d87..892ee2b9 100644 --- a/tests/uri-parsing.c +++ b/tests/uri-parsing.c @@ -125,6 +125,9 @@ static struct { { "http", "", NULL, "host", 80, "/", NULL, NULL } }, { "http://:@host", "http://@host/", { "http", "", "", "host", 80, "/", NULL, NULL } }, + + { "http://host/keep%00nuls", "http://host/keep%00nuls", + { "http", NULL, NULL, "host", 80, "/keep%00nuls", NULL, NULL } }, }; static int num_abs_tests = G_N_ELEMENTS(abs_tests); |