diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-02-10 10:50:19 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-02-10 14:51:53 +0100 |
commit | c5c4e816b461f69fa21699841a8ddd883cf4b46a (patch) | |
tree | 8bc4675863dd64b7cfb60a2b768946922d1b76a6 /lib/smtp.c | |
parent | 7017c421a1683a809c7cc18459a16bafc736626f (diff) | |
download | curl-c5c4e816b461f69fa21699841a8ddd883cf4b46a.tar.gz |
URL: only accept ";options" in SMTP/POP3/IMAP URL schemes
Fixes #1252
Diffstat (limited to 'lib/smtp.c')
-rw-r--r-- | lib/smtp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index bc9ccdf19..adc346a69 100644 --- a/lib/smtp.c +++ b/lib/smtp.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 @@ -126,7 +126,8 @@ const struct Curl_handler Curl_handler_smtp = { ZERO_NULL, /* readwrite */ PORT_SMTP, /* defport */ CURLPROTO_SMTP, /* protocol */ - PROTOPT_CLOSEACTION | PROTOPT_NOURLQUERY /* flags */ + PROTOPT_CLOSEACTION | PROTOPT_NOURLQUERY | /* flags */ + PROTOPT_URLOPTIONS }; #ifdef USE_SSL @@ -152,7 +153,7 @@ const struct Curl_handler Curl_handler_smtps = { PORT_SMTPS, /* defport */ CURLPROTO_SMTPS, /* protocol */ PROTOPT_CLOSEACTION | PROTOPT_SSL - | PROTOPT_NOURLQUERY /* flags */ + | PROTOPT_NOURLQUERY | PROTOPT_URLOPTIONS /* flags */ }; #endif |