Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -776,16 +776,18 @@ |
contentType &= ~type; |
} |
else |
{ |
contentType |= type; |
if (type == RegExpFilter.typeMap.CSP && value) |
csp = value; |
+ else if (type == RegExpFilter.typeMap.CSP && !value) |
+ return new InvalidFilter(origText, "filter_invalid_csp"); |
} |
} |
else |
{ |
switch (option.toLowerCase()) |
{ |
case "match-case": |
matchCase = !inverse; |