Commit 44bda708 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier

Fixes #3091 ssh public key issue with 1.0.7.3

parent a9ce2de8
......@@ -42,7 +42,7 @@ class SSHPublicKeyAttribute extends FileAttribute
{
$line = fgets($handle);
if (preg_match($this->format, $line)) {
$this->postValue = $line;
$this->postValue = trim($line);
} else {
msg_dialog::display(_("Upload error"), _("Unknown public key format!"), ERROR_DIALOG);
}
......
Markdown is supported
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