]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ftpserver.pl: send 213 SIZE response without spurious newline
authorDaniel Stenberg <daniel@haxx.se>
Tue, 23 Jan 2024 12:01:37 +0000 (13:01 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 25 Jan 2024 07:34:23 +0000 (08:34 +0100)
tests/ftpserver.pl

index cd798f0b9760a85e337129431b56c8c3af065c45..e250aa1cb69d2d60a0bb699949c6c5d345150ea1 100755 (executable)
@@ -2258,6 +2258,7 @@ sub SIZE_ftp {
     my $size = $data[0];
 
     if($size) {
+        $size += 0; # make it a number
         if($size > -1) {
             sendcontrol "213 $size\r\n";
         }