summaryrefslogtreecommitdiff
path: root/lib/imap.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-02-10 10:50:19 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-02-10 14:51:53 +0100
commitc5c4e816b461f69fa21699841a8ddd883cf4b46a (patch)
tree8bc4675863dd64b7cfb60a2b768946922d1b76a6 /lib/imap.c
parent7017c421a1683a809c7cc18459a16bafc736626f (diff)
downloadgnurl-c5c4e816b461f69fa21699841a8ddd883cf4b46a.tar.gz
gnurl-c5c4e816b461f69fa21699841a8ddd883cf4b46a.tar.bz2
gnurl-c5c4e816b461f69fa21699841a8ddd883cf4b46a.zip
URL: only accept ";options" in SMTP/POP3/IMAP URL schemes
Fixes #1252
Diffstat (limited to 'lib/imap.c')
-rw-r--r--lib/imap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 980002d97..44d350be2 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -130,7 +130,8 @@ const struct Curl_handler Curl_handler_imap = {
ZERO_NULL, /* readwrite */
PORT_IMAP, /* defport */
CURLPROTO_IMAP, /* protocol */
- PROTOPT_CLOSEACTION /* flags */
+ PROTOPT_CLOSEACTION| /* flags */
+ PROTOPT_URLOPTIONS
};
#ifdef USE_SSL