mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
lint: ban all dangerous HTML tags
* https://en.wikipedia.org/wiki/HTML_sanitization * https://asostack.com/enhance-your-google-play-store-description-with-rich-formatting-and-emojis-5f50ff354e5f
This commit is contained in:
parent
b2ca49b26c
commit
498ea5d609
2 changed files with 30 additions and 3 deletions
|
|
@ -164,7 +164,7 @@ regex_checks = {
|
|||
_("Unnecessary leading space")),
|
||||
(re.compile(r'.*\s$'),
|
||||
_("Unnecessary trailing space")),
|
||||
(re.compile(r'.*<(iframe|link|script).*'),
|
||||
(re.compile(r'.*<(applet|base|body|button|embed|form|head|html|iframe|img|input|link|object|picture|script|source|style|svg|video).*', re.IGNORECASE),
|
||||
_("Forbidden HTML tags")),
|
||||
(re.compile(r'''.*\s+src=["']javascript:.*'''),
|
||||
_("Javascript in HTML src attributes")),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue