Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0RC8

Bug #9367 Example Fileserver shows wrong uri for folders
Submitted: 2006-11-17 21:43 UTC
From: jeroen dot van dot wissen at 31f dot nl Assigned: hholzgra
Status: Closed Package: HTTP_WebDAV_Server (version 1.0.0RC4)
PHP Version: 5.2.0 OS: Linux
Roadmaps: 1.0    
Subscription  


 [2006-11-17 21:43 UTC] jeroen dot van dot wissen at 31f dot nl (Jeroen van Wissen)
Description: ------------ Then opening the example Fileserver that comes with the HTTP_WebDav_Server package with following code. <?php require("Filesystem.php"); $server = new HTTP_WebDAV_Server_Filesystem(); $server->ServeRequest($_SERVER["DOCUMENT_ROOT"]); ?> The folders shown on the page have wrong uri set. http://array[http_host]array[script_name]/webdav/ for a folder named webdav. Line 147 in HTTP/WebDav/Server.php of the Pear package says: $uri.= "//$this->_SERVER[HTTP_HOST]$this->_SERVER [SCRIPT_NAME]"; i changed it into: $uri.= "//".$this->_SERVER[HTTP_HOST].$this->_SERVER [SCRIPT_NAME]; and it works for me.

Comments

 [2006-11-17 21:45 UTC] jeroen dot van dot wissen at 31f dot nl
It was PHP 5.2.0 and not PHP 5.2.0 RC4 ( PHP 5.2.0 wasn't in the pulldown ;) )
 [2006-11-24 17:09 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!