Skip to content

Commit

Permalink
style(PHP): fix code style
Browse files Browse the repository at this point in the history
Signed-off-by: Malik <3097625+dermalikmann@users.noreply.github.com>
  • Loading branch information
dermalikmann committed Oct 2, 2024
1 parent d54879e commit 7665af5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/UserBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ public function createUserIfNotExists(string $uid, array $attributes = []): void
if ($home !== '') {
//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 ('/' !== $home[0]
&& !(3 < strlen($home) && ctype_alpha($home[0])
&& $home[1] === ':' && ('\\' === $home[2] || '/' === $home[2]))
if ($home[0] !== '/'
&& !(strlen($home) > 3 && ctype_alpha($home[0])
&& $home[1] === ':' && ($home[2] === '\\' || $home[2] === '/'))
) {
$home = $this->config->getSystemValue('datadirectory',
\OC::$SERVERROOT.'/data') . '/' . $home;
Expand Down

0 comments on commit 7665af5

Please sign in to comment.