projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afce7aa
)
MFH: Fixes to ascii downloads on win32.
author
Ilia Alshanetsky
<iliaa@php.net>
Wed, 9 Mar 2005 20:53:01 +0000
(20:53 +0000)
committer
Ilia Alshanetsky
<iliaa@php.net>
Wed, 9 Mar 2005 20:53:01 +0000
(20:53 +0000)
ext/ftp/ftp.c
patch
|
blob
|
history
diff --git
a/ext/ftp/ftp.c
b/ext/ftp/ftp.c
index c44662f629ef9e7077d162c0a367572c5f075fda..6427974faf0246b7a08addf10cf2e80e0a54dbbd 100644
(file)
--- a/
ext/ftp/ftp.c
+++ b/
ext/ftp/ftp.c
@@
-718,17
+718,17
@@
ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type,
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;
}