]> source.dussan.org Git - nextcloud-server.git/commitdiff
Enable https authentication
authoropensaucesystems <ashley@opensaucesystems.com>
Thu, 23 May 2013 15:22:05 +0000 (17:22 +0200)
committeropensaucesystems <ashley@opensaucesystems.com>
Thu, 23 May 2013 15:22:05 +0000 (17:22 +0200)
Allow authentication using https:// as well as http://

apps/user_webdavauth/user_webdavauth.php

index 8f4c11d0f0a480bd62de5ec5a53eeba6b4c3e565..146034a5d43c496d4bdd483ea4203a2f5ef673f7 100755 (executable)
@@ -42,7 +42,7 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
 
        public function checkPassword( $uid, $password ) {
                $arr = explode('://', $this->webdavauth_url, 2);
-               if( ! isset($arr) && count($arr) !== 2) {
+               if( ! isset($arr) OR count($arr) !== 2) {
                        OC_Log::write('OC_USER_WEBDAVAUTH', 'Invalid Url: "'.$this->webdavauth_url.'" ', 3);
                        return false;
                }