From: Daniel Stenberg Date: Fri, 1 Jan 2010 19:49:44 +0000 (+0000) Subject: stop at once if the EOB marker shows up, even if something else might get X-Git-Tag: curl-7_20_0~183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d79b5a06137a04e76fffd64d2636f747b5ffd3bc;p=thirdparty%2Fcurl.git stop at once if the EOB marker shows up, even if something else might get sent afterwards --- diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 91f5412356..dd16c2a564 100644 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 1998 - 2009, Daniel Stenberg, , et al. +# Copyright (C) 1998 - 2010, Daniel Stenberg, , 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; }