aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1322
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-01-11 15:46:19 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-01-24 08:54:26 +0100
commitc11c30a8c8d727dcf5634fa0cc6ee0b4b77ddc3d (patch)
treebb50ea23b104ba2f6d793903164364649fe11b9a /tests/data/test1322
parent75ca568fa1c19de4c5358fed246686de8467c238 (diff)
tests: test CRLF in URLs
Related to the security vulnerability: CVE-2012-0036 Bug: http://curl.haxx.se/docs/adv_20120124.html
Diffstat (limited to 'tests/data/test1322')
-rw-r--r--tests/data/test132229
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/data/test1322 b/tests/data/test1322
new file mode 100644
index 000000000..996727e94
--- /dev/null
+++ b/tests/data/test1322
@@ -0,0 +1,29 @@
+<testcase>
+<info>
+<keywords>
+POP3
+CRLF-in-URL
+</keywords>
+</info>
+
+# Client-side
+<client>
+<server>
+pop3
+</server>
+ <name>
+POP3 with URL-encoded CR LF in the URL
+ </name>
+ <command>
+pop3://%HOSTIP:%POP3PORT/%0d%0a/1322
+</command>
+</client>
+
+#
+<verify>
+# 3 - CURLE_URL_MALFORMAT
+<errorcode>
+3
+</errorcode>
+</verify>
+</testcase>