PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_WebDAV_Server » Bug #4970

http_PROPFIND slashifyied href's confuse Mac OS X

Details

Submitted2005-08-02 14:30 UTC
Fromwrandels at hsw dot fhz dot ch
Assignedhholzgra
StatusClosed
PackageHTTP_WebDAV_Server
PHP VersionIrrelevant
OSMac OS X
Roadmaps(Not assigned)

Comments

[2005-08-02 14:30 UTC] wrandels at hsw dot fhz dot ch

Description:
------------
On Mac OS X, if a slash is appended to the href of a collection resource, then the collection is listed as a child of itself.

Test script:
---------------
To fix this, I have changed the following line in function http_PROPFIND() :

old:
$href = $this->_slashify($_SERVER['SCRIPT_NAME'] . $path);

changed:
$href = $_SERVER['SCRIPT_NAME'] . $path;

[2006-01-11 15:21 UTC] sl at yes-co dot nl

This would be more logical:
$href = $this->_slashify($_SERVER['SCRIPT_NAME']) . $path;
e.g. insert a slash between the script name and the path.