mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
test680: verify rejection of malformatted .netrc quoted password
This commit is contained in:
parent
19f981b4ff
commit
d1b376c035
@ -95,7 +95,7 @@ test643 test645 test646 test647 test648 test649 test650 test651 \
|
||||
test652 test653 test654 test655 test656 test658 test659 test660 test661 \
|
||||
test662 test663 test664 test665 test666 test667 test668 test669 \
|
||||
test670 test671 test672 test673 test674 test675 test676 test677 test678 \
|
||||
test679 \
|
||||
test679 test680 \
|
||||
\
|
||||
test700 test701 test702 test703 test704 test705 test706 test707 test708 \
|
||||
test709 test710 test711 test712 test713 test714 test715 test716 test717 \
|
||||
|
37
tests/data/test680
Normal file
37
tests/data/test680
Normal file
@ -0,0 +1,37 @@
|
||||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
HTTP
|
||||
netrc
|
||||
</keywords>
|
||||
</info>
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
none
|
||||
</server>
|
||||
<name>
|
||||
netrc with quoted password but missing end quote
|
||||
</name>
|
||||
<command>
|
||||
--netrc --netrc-file log/netrc%TESTNUMBER http://user1@http.example/
|
||||
</command>
|
||||
<file name="log/netrc%TESTNUMBER" >
|
||||
machine %HOSTIP login user1 password "with spaces and \"\n\r\t\a
|
||||
</file>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
26
|
||||
</errorcode>
|
||||
</verify>
|
||||
</testcase>
|
Loading…
Reference in New Issue
Block a user