Check pk size before reading

pull/26/head
Sheng 2018-08-29 11:31:20 +08:00
parent fa717491cd
commit 6401e82ef9
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ jQuery(function($){
}
var pk = data.get('privatekey');
if (pk) {
if (pk && pk.size) {
if (pk.size > key_max_size) {
console.log('Invalid private key: ' + pk.name);
} else {