aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test894
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-02-06 11:36:53 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-02-07 08:18:23 +0100
commit950b53da0d47f8975a062b9fbba9e1db0efb8f31 (patch)
tree926a35b228b69b498a6c58e9dc72f4a76a35dc64 /tests/data/test894
parentc87730daebba11b1aacab743d9f9bf8f5283a555 (diff)
ftp: remove superfluous checking for crlf in user or pwd
... as this is already done much earlier in the URL parser. Also add test case 894 that verifies that pop3 with an encodedd CR in the user name is rejected. Closes #4887
Diffstat (limited to 'tests/data/test894')
-rw-r--r--tests/data/test89437
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/data/test894 b/tests/data/test894
new file mode 100644
index 000000000..db79830ca
--- /dev/null
+++ b/tests/data/test894
@@ -0,0 +1,37 @@
+<testcase>
+<info>
+<keywords>
+POP3
+Clear Text
+RETR
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+pop3
+</server>
+ <name>
+POP3 with CR in username
+ </name>
+ <command>
+pop3://user%0dFRIGGING_cmd:secret@%HOSTIP:%POP3PORT/894
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+# malformed URL
+<errorcode>
+3
+</errorcode>
+</verify>
+</testcase>