From 0897c8608fcea784ca9dee16fba3c12bb52621a6 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Tue, 14 Sep 2010 14:22:34 +0200 Subject: [PATCH] Allow the upload of SSH keys without the optional comment field (fixes issue 531 - thanks William!) --- src/IDF/Form/UserAccount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IDF/Form/UserAccount.php b/src/IDF/Form/UserAccount.php index 2c26cca..5af3185 100644 --- a/src/IDF/Form/UserAccount.php +++ b/src/IDF/Form/UserAccount.php @@ -204,7 +204,7 @@ class IDF_Form_UserAccount extends Pluf_Form return ''; } - if (preg_match('#^ssh\-[a-z]{3}\s\S+\s\S+$#', $key)) { + if (preg_match('#^ssh\-[a-z]{3}\s\S+==(\s\S+)?$#', $key)) { $key = str_replace(array("\n", "\r"), '', $key); if (Pluf::f('idf_strong_key_check', false)) {