Home » HTTP » HTTP_WebDAV_Server » Bug #1314
Parametrized path
Details
| Submitted | 2004-04-29 13:14 UTC |
|---|---|
| From | dostick at ctco dot lv |
| Assigned | hholzgra |
| Status | Bogus |
| Package | HTTP_WebDAV_Server |
| PHP Version | 4.3.6 |
| OS | unix |
| 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