version 1.1.1.1, 2012/02/21 23:48:02
|
version 1.1.1.2, 2012/05/29 12:34:43
|
Line 269 static php_stream *php_ftp_fopen_connect(php_stream_wr
|
Line 269 static php_stream *php_ftp_fopen_connect(php_stream_wr
|
} else { |
} else { |
/* if the user has configured who they are, |
/* if the user has configured who they are, |
send that as the password */ |
send that as the password */ |
char *from_address = php_ini_string("from", sizeof("from"), 0); | if (FG(from_address)) { |
if (from_address[0] != '\0') { | php_stream_printf(stream TSRMLS_CC, "PASS %s\r\n", FG(from_address)); |
php_stream_printf(stream TSRMLS_CC, "PASS %s\r\n", from_address); | |
} else { |
} else { |
php_stream_write_string(stream, "PASS anonymous\r\n"); |
php_stream_write_string(stream, "PASS anonymous\r\n"); |
} |
} |