/[smecontribs]/rpms/smeserver-phpwebftp/contribs8/smeserver-phpwebftp-4.0-patchftpmode.patch
ViewVC logotype

Contents of /rpms/smeserver-phpwebftp/contribs8/smeserver-phpwebftp-4.0-patchftpmode.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Nov 4 23:51:35 2013 UTC (11 years ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-phpwebftp-4_0-6_el5_sme
*Mon Nov 4 2013 JP Pialasse <tests@pialasse.com> 4.0-6.sme
- wrong binary ascii switch [SME: 7973]

1 --- smeserver-phpwebftp-4.0/root/home/httpd/html/webftp/include/ftp.class.php.ftppatch 2006-11-28 22:01:00.000000000 +0100
2 +++ smeserver-phpwebftp-4.0/root/home/httpd/html/webftp/include/ftp.class.php 2013-11-05 00:30:11.000000000 +0100
3 @@ -22,7 +22,7 @@
4 /** Type of FTP server (UNIX, Windows, ...) */
5 var $systype = "";
6 /** Binary (1) or ASCII (0) mode */
7 - var $mode = 1;
8 + var $mode = FTP_BINARY;
9 /** Logon indicator */
10 var $loggedOn = false;
11 /** resume broken downloads */
12 @@ -64,7 +64,9 @@
13 }
14
15 /** Set transfermode */
16 - function setMode($mode=0) {
17 + function setMode($mode=FTP_BINARY) {
18 + if ($mode==0){$mode=FTP_ASCII;}
19 + else if ($mode==1) {$mode=FTP_BINARY;}
20 $this->mode = $mode;
21 return;
22 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed