mirror of
https://github.com/curl/curl.git
synced 2026-08-26 12:33:38 +03:00
URL parser: reject non-numerical port numbers
Test 1281 added to verify
This commit is contained in:
parent
42253ad943
commit
aab33215af
3 changed files with 42 additions and 2 deletions
|
|
@ -129,7 +129,7 @@ test1228 test1229 test1230 test1231 test1232 test1233 test1234 test1235 \
|
|||
test1236 test1237 test1238 test1239 test1240 test1241 test1242 test1243 \
|
||||
test1244 test1245 test1246 test1247 \
|
||||
\
|
||||
test1280 \
|
||||
test1280 test1281 \
|
||||
\
|
||||
test1300 test1301 test1302 test1303 test1304 test1305 test1306 test1307 \
|
||||
test1308 test1309 test1310 test1311 test1312 test1313 test1314 test1315 \
|
||||
|
|
|
|||
35
tests/data/test1281
Normal file
35
tests/data/test1281
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
URL
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
none
|
||||
</server>
|
||||
<name>
|
||||
reject non-numerical port number in URL
|
||||
</name>
|
||||
<command>
|
||||
http://%HOSTIP:alpha/beta/1281
|
||||
</command>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
# 3 == CURLE_URL_MALFORMAT
|
||||
<errorcode>
|
||||
3
|
||||
</errorcode>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue