@@ -370,6 +370,7 @@ function validateCSR(e){
370370 still_waiting = true ;
371371 }
372372 for ( var d in DOMAINS ) {
373+ if ( ! DOMAINS . hasOwnProperty ( d ) ) continue ;
373374 if ( DOMAINS [ d ] [ 'request_payload' ] === undefined ) {
374375 still_waiting = true ;
375376 }
@@ -399,6 +400,7 @@ function validateCSR(e){
399400 // build the domain signature commands
400401 var domainString = "" ;
401402 for ( var d in DOMAINS ) {
403+ if ( ! DOMAINS . hasOwnProperty ( d ) ) continue ;
402404 domainString += d + ", " ;
403405 var d_ = d . replace ( / \. / g, "_" ) ;
404406 var domain_template = document . getElementById ( "signing_template" ) . cloneNode ( true ) ;
@@ -477,6 +479,7 @@ function validateInitialSigs(e){
477479
478480 // parse new-authz signatures
479481 for ( var d in DOMAINS ) {
482+ if ( ! DOMAINS . hasOwnProperty ( d ) ) continue ;
480483 var d_ = d . replace ( / \. / g, "_" ) ;
481484 var domain_sig = hex2b64 ( document . getElementById ( "domain_sig_" + d_ ) . value ) ;
482485 if ( domain_sig === null ) {
@@ -495,6 +498,7 @@ function validateInitialSigs(e){
495498 // request challenges for each domain
496499 var domains = [ ] ;
497500 for ( var d in DOMAINS ) {
501+ if ( ! DOMAINS . hasOwnProperty ( d ) ) continue ;
498502 domains . push ( d ) ;
499503 }
500504 var i = 0 ;
@@ -776,6 +780,7 @@ function checkAllDomains(){
776780 // check to see if all confirmed
777781 var all_confirmed = true ;
778782 for ( var domain in DOMAINS ) {
783+ if ( ! DOMAINS . hasOwnProperty ( domain ) ) continue ;
779784 if ( DOMAINS [ domain ] [ 'confirmed' ] !== true ) {
780785 all_confirmed = false ;
781786 }
0 commit comments