summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoropensaucesystems <ashley@opensaucesystems.com>2013-05-23 17:22:05 +0200
committeropensaucesystems <ashley@opensaucesystems.com>2013-05-23 17:22:05 +0200
commit169eb100301269e96a5c0d0f4d1e0e966ab3ed52 (patch)
tree0cf53d236451915527b9534c33fd828f72055b34
parente866e564c260d72ff9201609107e77e02ba98472 (diff)
downloadnextcloud-server-169eb100301269e96a5c0d0f4d1e0e966ab3ed52.tar.gz
nextcloud-server-169eb100301269e96a5c0d0f4d1e0e966ab3ed52.zip
Enable https authentication
Allow authentication using https:// as well as http://
-rwxr-xr-xapps/user_webdavauth/user_webdavauth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_webdavauth/user_webdavauth.php b/apps/user_webdavauth/user_webdavauth.php
index 8f4c11d0f0a..146034a5d43 100755
--- a/apps/user_webdavauth/user_webdavauth.php
+++ b/apps/user_webdavauth/user_webdavauth.php
@@ -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;
}