URL: only accept ";options" in SMTP/POP3/IMAP URL schemes

Fixes #1252
This commit is contained in:
Daniel Stenberg 2017-02-10 10:50:19 +01:00
parent 7017c421a1
commit c5c4e816b4
7 changed files with 73 additions and 14 deletions

47
tests/data/test1259 Normal file
View file

@ -0,0 +1,47 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>
# Server-side
<reply>
<data>
HTTP/1.0 200 OK swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT
Content-Type: text/html
Set-Cookie: I-am=here; domain=localhost;
boo
</data>
</reply>
# Client-side
<client>
<server>
http
</server>
<name>
HTTP URL with semicolon in password
</name>
<command>
"http://user:pass;word@%HOSTIP:%HTTPPORT/we/want/1259"
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<protocol>
GET /we/want/1259 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Authorization: Basic dXNlcjpwYXNzO3dvcmQ=
Accept: */*
</protocol>
</verify>
</testcase>