PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTTP » HTTP_WebDAV_Server » Bug #5316

PATH_INFO accessed but is not set

Details

Submitted2005-09-07 09:05 UTC
Frompear dot php dot net at chsc dot dk
Assignedhholzgra
StatusClosed
PackageHTTP_WebDAV_Server
PHP Version5.0.4
OSLinux
Roadmaps(Not assigned)

Comments

[2005-09-07 09:05 UTC] pear dot php dot net at chsc dot dk

Description:
------------
$_SERVER["PATH_INFO"] is sometimes used without checking whether the variable is actually set. This triggers PHP notices that confuses the WebDAV client.

This is a problem in lines 132 and 163.

Line 132 should be changed from

$this->uri = $uri . $_SERVER["PATH_INFO"]

to something like

$this->uri = $uri;
if (isset($_SERVER["PATH_INFO"])) {
$this->uri = $_SERVER["PATH_INFO"];
}

The same goes for line 163.

[2006-02-21 09:18 UTC] pear dot php dot net at chsc dot dk

If I add a network place with the URL http://example.org/webdav.php/, the Windows XP WebDAV client (MiniRedir) will access http://example.org/webdav.php (without trailing slash). Here PATH_INFO isn't set.