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 #1314

Parametrized path

Details

Submitted2004-04-29 13:14 UTC
Fromdostick at ctco dot lv
Assignedhholzgra
StatusBogus
PackageHTTP_WebDAV_Server
PHP Version4.3.6
OSunix
Roadmaps(Not assigned)

Comments

[2004-04-29 13:14 UTC] dostick at ctco dot lv

Description:
------------
index.php script is WebDAV server.
User navigates to http://www.site.com/ and get listing of content.
as soon as user tries to navigate deeper into the tree,
URL becomes www.site.com/index.php/directory
This obviously produces an error.
To avoid this error, Server.php need to have parameter that tells server to produce href as parameter to the script and not as part of URL.

Example patch:

--- Server.php Thu Apr 29 15:08:54 2004
+++ /Server.php Thu Apr 29 15:14:00 2004
@@ -603,7 +603,7 @@

$href = (@$_SERVER["HTTPS"] === "on" ? "https:" : "http:");
$href.= "//".$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
- $href.= $path;
+ $href= "?path=".$path;
//TODO make sure collection resource pathes end in a trailing slash

echo " <D:href>$href</D:href>\n";

using this patch in given example the index.php script it may contain $server->ServeRequest($path);

[2004-05-08 11:49 UTC] dostick at ctco dot lv

nc