According to the base64 standard, zero, one or two fill bytes ("=")
might pop up at the end, so always expecting "==" is plainly wrong
(originates from 0897c860
, fixes issue 592)
This commit is contained in:
parent
90b9279c3a
commit
fd7a53a854
@ -295,7 +295,7 @@ class IDF_Form_UserAccount extends Pluf_Form
|
|||||||
return '';
|
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);
|
$key = str_replace(array("\n", "\r"), '', $key);
|
||||||
|
|
||||||
if (Pluf::f('idf_strong_key_check', false)) {
|
if (Pluf::f('idf_strong_key_check', false)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user