Home » HTTP » HTTP_WebDAV_Server » Bug #6666
change the variable asign order.
Details
| Request #6666 | change the variable asign order. |
|---|---|
| Submitted | 2006-02-02 13:16 UTC |
| From | vud1 at sindominio dot net |
| Assigned | hholzgra |
| Status | Closed |
| Package | HTTP_WebDAV_Server |
| PHP Version | 4.4.0 |
| OS | All |
| Roadmaps | (Not assigned) |
Comments
[2006-02-02 13:16 UTC] vud1 at sindominio dot net
Description:
------------
I would like to control the access webdav by directorys. To do that i need to merge three vars:
Uservar, Userpassvar, pathvar.
i have seen the Fylesystem.php example code has a check_auth function.. but it only has the two first vars: user and pass.
whith a simple change in the Server.php file (line 142 and above) we could have the path var abaliable to merge the data.
Test script:
---------------
I propose change:
if (!$this->_check_auth()) { //line 142
[...]
$this->path = $this->_urldecode($_SERVER["PATH_INFO"]);
if (!strlen($this->path)) { //line 163
By:
$this->path = $this->_urldecode($_SERVER["PATH_INFO"]);
if (!$this->_check_auth()) {
[...]
if (!strlen($this->path)) {
in this way i could use $this->path variable from check_auth function in my fylesistem.php file.