Signed-off-by: Andy Green <andy.green@linaro.org>
switch (wsi->u.hdr.ups) {
case URIPS_IDLE:
/* genuine delimiter */
- if (c == '&' && !enc) {
+ if ((c == '&' || c == ';') && !enc) {
issue_char(wsi, c);
/* swallow the terminator */
ah->frags[ah->nfrag].len--;
check
echo
+echo "---- ? processing (/cgi-bin/settings.js?key1=value1)"
+rm -f /tmp/lwscap
+echo -e "GET /cgi-bin/settings.js?key1=value1 HTTP/1.1\x0d\x0a\x0d\x0a" | nc $SERVER $PORT | sed '1,/^\r$/d'> /tmp/lwscap
+check 1 "key1=value1"
+check
+
+
+echo
echo "---- ? processing (%2f%2e%2e%2f%2e./test.html?arg=1)"
rm -f /tmp/lwscap
echo -e "GET %2f%2e%2e%2f%2e./test.html?arg=1 HTTP/1.1\x0d\x0a\x0d\x0a" | nc $SERVER $PORT | sed '1,/^\r$/d'> /tmp/lwscap