phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgwapi/inc class.vfs_dav.inc.php


From: Caeies
Subject: [Phpgroupware-cvs] phpgwapi/inc class.vfs_dav.inc.php
Date: Wed, 01 Feb 2006 17:26:01 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Branch:         
Changes by:     Caeies <address@hidden> 06/02/01 17:26:01

Modified files:
        inc            : class.vfs_dav.inc.php 

Log message:
        Fix the case of denied access for a directory or file in file_exists 
and return empty array in ls if no properties are found

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/phpgwapi/inc/class.vfs_dav.inc.php.diff?tr1=1.7&tr2=1.8&r1=text&r2=text

Patches:
Index: phpgwapi/inc/class.vfs_dav.inc.php
diff -u phpgwapi/inc/class.vfs_dav.inc.php:1.7 
phpgwapi/inc/class.vfs_dav.inc.php:1.8
--- phpgwapi/inc/class.vfs_dav.inc.php:1.7      Wed May  4 13:05:20 2005
+++ phpgwapi/inc/class.vfs_dav.inc.php  Wed Feb  1 17:26:01 2006
@@ -7,7 +7,7 @@
        * @license http://www.fsf.org/licenses/lgpl.html GNU Lesser General 
Public License
        * @package phpgwapi
        * @subpackage vfs
-       * @version $Id: class.vfs_dav.inc.php,v 1.7 2005/05/04 13:05:20 
powerstat Exp $
+       * @version $Id: class.vfs_dav.inc.php,v 1.8 2006/02/01 17:26:01 Caeies 
Exp $
        */
 
        /**
@@ -1692,6 +1692,11 @@
                        // it then caches the result this limits the amount of 
traffic to
                        //the dav server (which makes it faster even over a 
local connection)
                        $props = $this->get_properties($path,0);
+                       if($props === False)
+                       {
+                               $this->debug('found but denied');
+                               return True;
+                       }
                        if ($props[$path])
                        {
                                $this->debug('found');
@@ -1759,7 +1764,10 @@
                        {
 $this->debug('ls branch 1 :'. $type,DEBUG_LS);
                                $prop=$this->get_properties($p->real_full_path, 
0, $type == 'Directory');
-
+                               if(!is_array($prop))
+                               {
+                                       return array(); // Don't exist or 
access denied (check with file_exists
+                               }
                                $rarray = array ();
 
                                $value = $prop[$p->real_full_path];




reply via email to

[Prev in Thread] Current Thread [Next in Thread]