Commit 6401e82e by Sheng

Check pk size before reading

parent fa717491
......@@ -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 {
......
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