PHP Classes

Core FTP Server

Recommend this page to a friend!

      Advanced FTP client class  >  All threads  >  Core FTP Server  >  (Un) Subscribe thread alerts  
Subject:Core FTP Server
Summary:Fails at USER/PASS
Messages:2
Author:Dominic
Date:2009-09-20 22:49:40
Update:2009-11-02 22:15:42
 

 


  1. Core FTP Server   Reply   Report abuse  
Picture of Dominic Dominic - 2009-09-20 22:49:40
Example:
ftp://ftp.coreftp.com/coreftplite.exe

Log:
GET < 220 Core FTP Server Version 1.0, build 307 Registered
PUT > SYST
GET < 530 Please login with USER and PASS
PUT > FEAT
GET < 211-Extensions supported AUTH SSL211 END
PUT > USER anonymous
GET < 331 password required for anonymous
PUT > PASS anonymous@some.thing
GET < 230-Logged on230
Notice: Undefined offset: 1 in ftp.php on line 799

799 being (within sockets class)
$this->_code=(int)$regs[1];

  2. Re: Core FTP Server   Reply   Report abuse  
Picture of Dominic Dominic - 2009-11-02 22:15:42 - In reply to message 1 from Dominic
Very simple fix, tried with ~5 different server software and saw no impact

Replace ==> [^".CRLF."]+
With ==> [^".CRLF."]*

In ftp_class_sockets.php and ftp_class_pure.php

Why: we receive this line "230 "
The regular expression expected something between the space and line feed