@@ -20,6 +20,7 @@ function RuleSet(name, match_rule, default_off) {
2020 var on_by_default = true ;
2121 this . name = name ;
2222 this . ruleset_match = match_rule ;
23+ this . notes = "" ;
2324 if ( match_rule ) {
2425 this . ruleset_match_c = new RegExp ( match_rule ) ;
2526 } else {
@@ -30,6 +31,7 @@ function RuleSet(name, match_rule, default_off) {
3031 // the default_off XML attribute. Ideally we'd like this attribute to be
3132 // "valueless"
3233 on_by_default = false ;
34+ this . notes = default_off ;
3335 }
3436 this . rules = [ ] ;
3537 this . exclusions = [ ] ;
@@ -264,8 +266,8 @@ const HTTPSRules = {
264266 }
265267 }
266268
267- // for any rulesets with <target host="*">
268- // every URI needs to be checked against these rulesets
269+ // for any rulesets with <target host="*">
270+ // every URI needs to be checked against these rulesets
269271 // (though currently we don't ship any)
270272 this . global_rulesets = this . targets [ "*" ] ? this . targets [ "*" ] : [ ] ;
271273
@@ -289,7 +291,7 @@ const HTTPSRules = {
289291 try {
290292 this . log ( DBUG , "Loading ruleset file: " + rulefiles [ i ] . path ) ;
291293 r = RuleWriter . read ( rulefiles [ i ] , targets , this . rulesets ) ;
292- if ( r != null )
294+ if ( r != null )
293295 this . rulesets . push ( r ) ;
294296 } catch ( e ) {
295297 this . log ( WARN , "Error in ruleset file: " + e ) ;
@@ -334,13 +336,13 @@ const HTTPSRules = {
334336 results = results . concat ( this . targets [ t ] ) ;
335337 }
336338 this . log ( DBUG , "Applicable rules for " + host + ":" ) ;
337- for ( i = 0 ; i < results . length ; ++ i )
339+ for ( i = 0 ; i < results . length ; ++ i )
338340 this . log ( DBUG , " " + results [ i ] . name ) ;
339341 return results ;
340342 } ,
341-
343+
342344 shouldSecureCookie : function ( c ) {
343- // Check to see if the Cookie object c meets any of our cookierule citeria
345+ // Check to see if the Cookie object c meets any of our cookierule citeria
344346 // for being marked as secure
345347 //this.log(DBUG, "Testing cookie:");
346348 //this.log(DBUG, " name: " + c.name);
@@ -351,10 +353,10 @@ const HTTPSRules = {
351353 var rs = this . applicableRulesets ( c . host ) ;
352354 for ( i = 0 ; i < rs . length ; ++ i ) {
353355 var ruleset = rs [ i ] ;
354- if ( ruleset . active )
356+ if ( ruleset . active )
355357 for ( j = 0 ; j < ruleset . cookierules . length ; j ++ ) {
356358 var cr = ruleset . cookierules [ j ] ;
357- if ( cr . host_c . test ( c . host ) && cr . name_c . test ( c . name ) )
359+ if ( cr . host_c . test ( c . host ) && cr . name_c . test ( c . name ) )
358360 return true ;
359361 }
360362 }
0 commit comments