Commit feeda37b authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

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's avatarLukas Fleischer <>
parent c89bf51a
......@@ -1250,7 +1250,7 @@ function ssh_key_fingerprint($ssh_key) {
$tokens = explode(' ', $out[0]);
if (count($tokens) != 4) {
if (count($tokens) < 4) {
return false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment