php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #34853 ftp_login failed, if server reply 200
Submitted: 2005-10-13 12:53 UTC Modified: 2006-08-27 16:55 UTC
From: markokarjalainen at kolumbus dot fi Assigned: bjori (profile)
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.4.0 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: markokarjalainen at kolumbus dot fi
New email:
PHP Version: OS:

 

 [2005-10-13 12:53 UTC] markokarjalainen at kolumbus dot fi
Description:
------------
ftp_login should reply true, if server gives 200 reply after  
sending username command  


Reproduce code:
---------------
In folder ext\ftp\ftp.c
Function ftp_login

Change row 310
From:
if (ftp->resp == 230)
To:
if (ftp->resp == 230 || ftp->resp == 200)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-27 16:55 UTC] bjori@php.net
No.

Valid reply codes for USER are: 230, 530, 500, 501, 421, 331 & 332
For PASS: 230, 202, 530, 500, 501, 503, 421 & 332

Any server returning other codes is simply broken.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 18:01:28 2024 UTC