mirror of
https://github.com/curl/curl.git
synced 2026-04-19 18:11:13 +03:00
stop at once if the EOB marker shows up, even if something else might get
sent afterwards
This commit is contained in:
parent
a62f32d3c2
commit
d79b5a0613
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
|||
# | (__| |_| | _ <| |___
|
||||
# \___|\___/|_| \_\_____|
|
||||
#
|
||||
# Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
# Copyright (C) 1998 - 2010, 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
|
||||
|
|
@ -510,7 +510,7 @@ sub DATA_smtp {
|
|||
print FILE $line if(!$nosave);
|
||||
|
||||
$raw .= $line;
|
||||
if($raw =~ /\x0d\x0a\x2e\x0d\x0a\z/) {
|
||||
if($raw =~ /\x0d\x0a\x2e\x0d\x0a/) {
|
||||
# end of data marker!
|
||||
$eob = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue