mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
php80: separator after array is nog longer supported
This commit is contained in:
parent
36f8fcd0b2
commit
e2accfdbdb
@ -407,7 +407,7 @@ function local_user_set(&$user, $force_password = false, $userattrs = null)
|
||||
$keys = base64_decode($user['authorizedkeys']);
|
||||
$keys = preg_split('/[\n\r]+/', $keys);
|
||||
$keys[] = '';
|
||||
$keys = implode($keys, "\n");
|
||||
$keys = implode("\n", $keys);
|
||||
@file_put_contents("{$user_home}/.ssh/authorized_keys", $keys);
|
||||
@chown("{$user_home}/.ssh/authorized_keys", $user_name);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user