diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2021-12-20 17:27:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 17:27:05 +0100 |
commit | c0cfd237ab1e7b8ac36e3d074ebafdf9e96d6e6a (patch) | |
tree | a9333af388f9921e6df8af890c6d3044430f42bc /apps/user_ldap/lib/LDAP.php | |
parent | a567f5d7b59382fc6b7fceab317936da80428c3f (diff) | |
parent | 52760a95d9d21c1e95968ff38a719f31f128ba5a (diff) | |
download | nextcloud-server-c0cfd237ab1e7b8ac36e3d074ebafdf9e96d6e6a.tar.gz nextcloud-server-c0cfd237ab1e7b8ac36e3d074ebafdf9e96d6e6a.zip |
Merge pull request #30299 from nextcloud/fix/log_files
Diffstat (limited to 'apps/user_ldap/lib/LDAP.php')
-rw-r--r-- | apps/user_ldap/lib/LDAP.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/LDAP.php b/apps/user_ldap/lib/LDAP.php index e33facd0889..18a9476128d 100644 --- a/apps/user_ldap/lib/LDAP.php +++ b/apps/user_ldap/lib/LDAP.php @@ -308,7 +308,7 @@ class LDAP implements ILDAPWrapper { $this->curFunc = $functionName; $this->curArgs = $args; - if ($this->logFile !== '' && is_writable($this->logFile)) { + if ($this->logFile !== '' && is_writable(dirname($this->logFile)) && (!file_exists($this->logFile) || is_writable($this->logFile))) { $args = array_reduce($this->curArgs, static function (array $carry, $item): array { $carry[] = !is_resource($item) ? $item : '(resource)'; return $carry; |