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

change the variable asign order.

Details

Request #6666change the variable asign order.
Submitted2006-02-02 13:16 UTC
Fromvud1 at sindominio dot net
Assignedhholzgra
StatusClosed
PackageHTTP_WebDAV_Server
PHP Version4.4.0
OSAll
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.