From 44958e6ab4218429475f3c79ecf2116b78a07021 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 2 Sep 2021 21:32:48 +0200 Subject: implement rethinked tags sanitizing approach This has not been tested yet. Additionally, functionality for blocking of `data:' urls needs to be re-enabled. --- common/misc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/misc.js') diff --git a/common/misc.js b/common/misc.js index 8894d60..30a9e77 100644 --- a/common/misc.js +++ b/common/misc.js @@ -178,7 +178,7 @@ function sanitize_csp_header(header, policy) return {name: header.name, value: new_csp.join('')}; } -/* Regexes and objest to use as/in schemas for parse_json_with_schema(). */ +/* Regexes and objects to use as/in schemas for parse_json_with_schema(). */ const nonempty_string_matcher = /.+/; const matchers = { -- cgit v1.2.3