From 42688f5cd2b660706543fd71ad0932c5e68199d0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 4 Mar 2008 08:33:08 +0000 Subject: [PATCH] removed unnecessary checkAuth function, because the regular eGW session cookie got not recogniced and all checks are done by the header include anyway --- .../inc/class.oldvfs_webdav_server.inc.php | 21 ------------------- phpgwapi/inc/class.vfs_webdav_server.inc.php | 21 ------------------- 2 files changed, 42 deletions(-) diff --git a/phpgwapi/inc/class.oldvfs_webdav_server.inc.php b/phpgwapi/inc/class.oldvfs_webdav_server.inc.php index e57678627b..87e1c96f17 100644 --- a/phpgwapi/inc/class.oldvfs_webdav_server.inc.php +++ b/phpgwapi/inc/class.oldvfs_webdav_server.inc.php @@ -456,25 +456,4 @@ class oldvfs_webdav_server extends HTTP_WebDAV_Server return ""; // this is as the filesystem example handler does it, no true or false ... } - - /** - * auth check in the session creation in dav.php, to avoid being redirected to login.php - * - * @param string $type - * @param string $login account_lid or account_lid@domain - * @param string $password this is checked in the session creation - * @return boolean true if authorized or false otherwise - */ - function checkAuth($type,$login,$password) - { - list($account_lid,$domain) = explode('@',$login); - - $auth = ($login === $GLOBALS['egw_info']['user']['account_lid'] || - ($account_lid === $GLOBALS['egw_info']['user']['account_lid'] && $domain === $GLOBALS['egw']->session->account_domain)) && - $GLOBALS['egw_info']['user']['apps']['filemanager']; - - if ($this->debug) error_log("vfs_webdav_server::checkAuth('$type','$login','\$password'): account_lid='$account_lid', domain='$domain' ==> ".(int)$auth); - - return $auth; - } } \ No newline at end of file diff --git a/phpgwapi/inc/class.vfs_webdav_server.inc.php b/phpgwapi/inc/class.vfs_webdav_server.inc.php index dd21a9d51b..913ebbedd3 100644 --- a/phpgwapi/inc/class.vfs_webdav_server.inc.php +++ b/phpgwapi/inc/class.vfs_webdav_server.inc.php @@ -380,25 +380,4 @@ class vfs_webdav_server extends HTTP_WebDAV_Server_Filesystem unset($allow['UNLOCK']); return $allow; } - - /** - * auth check in the session creation in dav.php, to avoid being redirected to login.php - * - * @param string $type - * @param string $login account_lid or account_lid@domain - * @param string $password this is checked in the session creation - * @return boolean true if authorized or false otherwise - */ - function checkAuth($type,$login,$password) - { - list($account_lid,$domain) = explode('@',$login); - - $auth = ($login === $GLOBALS['egw_info']['user']['account_lid'] || - ($account_lid === $GLOBALS['egw_info']['user']['account_lid'] && $domain === $GLOBALS['egw']->session->account_domain)) && - $GLOBALS['egw_info']['user']['apps']['filemanager']; - - if ($this->debug) error_log("vfs_webdav_server::checkAuth('$type','$login','\$password'): account_lid='$account_lid', domain='$domain' ==> ".(int)$auth); - - return $auth; - } } \ No newline at end of file