diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-01-01 19:49:44 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-01-01 19:49:44 +0000 |
commit | d79b5a06137a04e76fffd64d2636f747b5ffd3bc (patch) | |
tree | 9a76709544a784d9a5a7a66b088940e4f1ec971f | |
parent | a62f32d3c2012a4e2e48dac3d9ec780733c4a844 (diff) |
stop at once if the EOB marker shows up, even if something else might get
sent afterwards
-rw-r--r-- | tests/ftpserver.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 91f541235..dd16c2a56 100644 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -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; } |