diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-29 08:57:28 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-29 08:59:35 +0200 |
commit | feeda37bb754a57c480fdd58d68701d7853928f6 (patch) | |
tree | 5732c75417d4fd4efc6ef60c7bfe36472d937838 /web/lib | |
parent | c89bf51af26003d01fb73eece3899c2b6e97e7bd (diff) | |
download | aurweb-feeda37bb754a57c480fdd58d68701d7853928f6.tar.xz |
`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>
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/acctfuncs.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index 861de0a..edd38ee 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -1250,7 +1250,7 @@ function ssh_key_fingerprint($ssh_key) { unlink($tmpfile); $tokens = explode(' ', $out[0]); - if (count($tokens) != 4) { + if (count($tokens) < 4) { return false; } |