| Index: lib/filterClasses.js |
| =================================================================== |
| --- a/lib/filterClasses.js |
| +++ b/lib/filterClasses.js |
| @@ -788,40 +788,40 @@ |
| } |
| option = option.replace(/-/, "_").toUpperCase(); |
| if (option in RegExpFilter.typeMap) |
| { |
| if (contentType == null) |
| contentType = 0; |
| contentType |= RegExpFilter.typeMap[option]; |
| - if (option == "CSP" && typeof value != "undefined") |
| + if (option == "CSP" && value) |
| csp = value; |
| } |
| else if (option[0] == "~" && option.substr(1) in RegExpFilter.typeMap) |
| { |
| if (contentType == null) |
| ({contentType} = RegExpFilter.prototype); |
| contentType &= ~RegExpFilter.typeMap[option.substr(1)]; |
| } |
| else if (option == "MATCH_CASE") |
| matchCase = true; |
| else if (option == "~MATCH_CASE") |
| matchCase = false; |
| - else if (option == "DOMAIN" && typeof value != "undefined") |
| + else if (option == "DOMAIN" && value) |
| domains = value.toUpperCase(); |
| else if (option == "THIRD_PARTY") |
| thirdParty = true; |
| else if (option == "~THIRD_PARTY") |
| thirdParty = false; |
| else if (option == "COLLAPSE") |
| collapse = true; |
| else if (option == "~COLLAPSE") |
| collapse = false; |
| - else if (option == "SITEKEY" && typeof value != "undefined") |
| + else if (option == "SITEKEY" && value) |
| sitekeys = value.toUpperCase(); |
| else |
| return new InvalidFilter(origText, "filter_unknown_option"); |
| } |
| } |
| try |
| { |