home » zplus/freepost.git
Author zPlus <zplus@peers.community> 2020-06-05 05:44:26
Committer zPlus <zplus@peers.community> 2020-06-05 05:44:26
Commit eaf8485 (patch)
Tree 2f885d9
Parent(s)

Whitelist "hr" HTML tag.


commits diff: ce0bbd9..eaf8485
1 file changed, 1 insertion, 1 deletiondownload


Diffstat
-rwxr-xr-x freepost/__init__.py 2

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+1/-1 M   freepost/__init__.py
index 29c8dfb..8e18500
old size: 27K - new size: 27K
@@ -66,7 +66,7 @@ template = functools.partial (
66 66 # "bleach" library is used to sanitize the HTML output of jinja2's "md2html"
67 67 # filter. The library has only a very restrictive list of white-listed
68 68 # tags, so we add some more here.
69 - bleach.sanitizer.ALLOWED_TAGS += [ 'br', 'img', 'p', 'pre', 'h1', 'h2', 'h3' ]
69 + bleach.sanitizer.ALLOWED_TAGS += [ 'br', 'img', 'p', 'pre', 'h1', 'h2', 'h3', 'hr' ]
70 70 bleach.sanitizer.ALLOWED_ATTRIBUTES.update ({
71 71 'img': [ 'src' ]
72 72 })