diff options
Diffstat (limited to 'dev-python/html5lib/files/html5lib-0.9999999-python3.6-sanitizer-re.patch')
-rw-r--r-- | dev-python/html5lib/files/html5lib-0.9999999-python3.6-sanitizer-re.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev-python/html5lib/files/html5lib-0.9999999-python3.6-sanitizer-re.patch b/dev-python/html5lib/files/html5lib-0.9999999-python3.6-sanitizer-re.patch index c64cbe1ab3f..2fbef2ad0b9 100644 --- a/dev-python/html5lib/files/html5lib-0.9999999-python3.6-sanitizer-re.patch +++ b/dev-python/html5lib/files/html5lib-0.9999999-python3.6-sanitizer-re.patch @@ -5,7 +5,7 @@ if attr not in attrs: continue - val_unescaped = re.sub("[`\000-\040\177-\240\s]+", '', -+ val_unescaped = re.sub(r"[`\000-\040\177-\240\s]+", '', ++ val_unescaped = re.sub("[`\x00-\x20\x7f-\xa0\\s]+", '', unescape(attrs[attr])).lower() # remove replacement characters from unescaped characters val_unescaped = val_unescaped.replace("\ufffd", "") |