diff options
author | kondou <kondou@ts.unde.re> | 2013-04-20 22:45:50 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-04-20 22:46:37 +0200 |
commit | d6b13ccd12e48257e0d085d190f57b159795c6dc (patch) | |
tree | f3539007382ce69992444acb3109f06026c70ca4 /apps/user_ldap/user_ldap.php | |
parent | b8fe7025da4b0b6f0fde9dde4553d0b29eefb10c (diff) | |
download | nextcloud-server-d6b13ccd12e48257e0d085d190f57b159795c6dc.tar.gz nextcloud-server-d6b13ccd12e48257e0d085d190f57b159795c6dc.zip |
Use !== and === in user_ldap app – Part 2
Diffstat (limited to 'apps/user_ldap/user_ldap.php')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 1277e074714..41e2926605e 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -197,9 +197,9 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface { //if attribute's value is an absolute path take this, otherwise append it to data dir //check for / at the beginning or pattern c:\ resp. c:/ if( - '/' == $path[0] + '/' === $path[0] || (3 < strlen($path) && ctype_alpha($path[0]) - && $path[1] == ':' && ('\\' == $path[2] || '/' == $path[2])) + && $path[1] === ':' && ('\\' === $path[2] || '/' === $path[2])) ) { $homedir = $path; } else { |