mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Accept SSH keys with whitespace in comments
`ssh-keygen -l` returns more than four tokens when there is whitespace in the key comment. Fixes FS#45488. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
c89bf51af2
commit
feeda37bb7
1 changed files with 1 additions and 1 deletions
|
@ -1250,7 +1250,7 @@ function ssh_key_fingerprint($ssh_key) {
|
||||||
unlink($tmpfile);
|
unlink($tmpfile);
|
||||||
|
|
||||||
$tokens = explode(' ', $out[0]);
|
$tokens = explode(' ', $out[0]);
|
||||||
if (count($tokens) != 4) {
|
if (count($tokens) < 4) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue