summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-06-29 08:57:28 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-29 08:59:35 +0200
commitfeeda37bb754a57c480fdd58d68701d7853928f6 (patch)
tree5732c75417d4fd4efc6ef60c7bfe36472d937838 /web
parentc89bf51af26003d01fb73eece3899c2b6e97e7bd (diff)
downloadaurweb-master.tar.xz
Accept SSH keys with whitespace in commentsHEADmaster
`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')
-rw-r--r--web/lib/acctfuncs.inc.php2
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;
}