mirror of
https://github.com/curl/curl.git
synced 2026-07-26 06:47:16 +03:00
server/getpart: make the "XML-parser" stricter
When extracting a <section> <part> and there's no </part> before </section>, this now outputs an error and returns a wrong string to make users spot the mistake. Ref: #5070 Closes #5071
This commit is contained in:
parent
a7e24c7362
commit
fe8ba51209
3 changed files with 21 additions and 12 deletions
|
|
@ -8,7 +8,9 @@ SMB
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>Basic SMB test complete</data>
|
||||
<data nocheck="yes">
|
||||
Basic SMB test complete
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
#
|
||||
|
|
@ -20,10 +22,10 @@ smb
|
|||
<features>
|
||||
smb
|
||||
</features>
|
||||
<name>
|
||||
<name>
|
||||
Basic SMB request
|
||||
</name>
|
||||
<command>
|
||||
</name>
|
||||
<command>
|
||||
-u 'curltest:curltest' smb://%HOSTIP:%SMBPORT/TESTS/1451
|
||||
</command>
|
||||
</client>
|
||||
|
|
@ -31,6 +33,8 @@ Basic SMB request
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<stdout>Basic SMB test complete</stdout>
|
||||
<stdout>
|
||||
Basic SMB test complete
|
||||
</stdout>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue