php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21937 Missing controlfunction in fopen for open urls using trustservers
Submitted: 2003-01-29 05:28 UTC Modified: 2003-01-29 13:54 UTC
From: eisbrenner at gid-gmbh dot de Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.2.2 OS: Windows, Linux
Private report: No CVE-ID: None
 [2003-01-29 05:28 UTC] eisbrenner at gid-gmbh dot de
Hi,

there is missing a controlfunction opening an url.

in case of using an authorisation-system (like novell client trust)
in a private network the auth-server sends a redirect to a ssl-port.

using a webclient a certificate will be transferred and a login-screen will be shown.

the problem is, fopen can open the socket, but can't handle the redirection.
after reaching the timelimit an errormessage is diplayed (tested with 10 minutes timeout).

after login on the trust-server using a webclient php is able to open the requested
document.

so the redirect-url should be caught and displayed as a warning,
fopen should return false, so the following parts in the php-script can be
executed.

regards

Kai Eisbrenner

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-29 13:54 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

In 4.3.0 snapshot fopen() is able to handle redirects.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 10:01:30 2024 UTC