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

Bug #12282 MOVE (rename) not properly urldecoded
Submitted: 2007-10-19 15:57 UTC
From: bklang Assigned: hholzgra
Status: Closed Package: HTTP_WebDAV_Server (version 1.0.0RC4)
PHP Version: Irrelevant OS: All
Roadmaps: 1.0    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 10 + 28 = ?

 
 [2007-10-19 15:57 UTC] bklang (Ben Klang)
Description: ------------ While the PATH_INFO information from the url is properly decoded, the Destination header never is. This results in file names like "Foo%20Bar" rather than "Foo Bar" when renaming directories or files where the destination name has a space or other URL-encoded character. The fix is to change line 1480 of Server.php: $options["dest"] = urldecode(substr($path, strlen($this->_SERVER["SCRIPT_NAME"]))); The urldecode() was added to correct this issue. Expected result: ---------------- Directories or files renamed to a name including a space hit the backend with "%20" in their name. Actual result: -------------- All urlencoded chars should hit the backend urldecoded.

Comments

 [2008-04-23 02:02 UTC] hholzgra (Hartmut Holzgraefe)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/HTTP_WebDAV_Server