cvs: php-src /ext/ftp ftp.c

From: Date: Wed, 09 Mar 2005 20:52:39 +0000
Subject: cvs: php-src /ext/ftp ftp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-30806@lists.php.net to get a copy of this message
iliaa Wed Mar 9 15:52:39 2005 EDT Modified files: /php-src/ext/ftp ftp.c Log: Fixes to ascii downloads on win32. http://cvs.php.net/diff.php/php-src/ext/ftp/ftp.c?r1=1.107&r2=1.108&ty=u Index: php-src/ext/ftp/ftp.c diff -u php-src/ext/ftp/ftp.c:1.107 php-src/ext/ftp/ftp.c:1.108 --- php-src/ext/ftp/ftp.c:1.107 Thu Feb 17 10:37:24 2005 +++ php-src/ext/ftp/ftp.c Wed Mar 9 15:52:38 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ftp.c,v 1.107 2005/02/17 15:37:24 iliaa Exp $ */ +/* $Id: ftp.c,v 1.108 2005/03/09 20:52:38 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -851,17 +851,17 @@ php_stream_write(outstream, "\r\n", sizeof("\r\n")-1); if (*s == '\r') { - *s++; + s++; } /* for some reason some servers prefix a \r before a \n, * resulting in a \r\r\n in the buffer when * the remote file already has windoze style line endings. */ if (*s == '\r') { - *s++; + s++; } if (*s == '\n') { - *s++; + s++; } ptr = s; }

« previous php.cvs (#30806) next »