1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-18 20:50:10 +01:00

lint: check description for forbidden HTML tags: iframe, link, script, etc.

This commit is contained in:
Hans-Christoph Steiner 2018-01-23 17:13:49 +01:00
parent f0940540ee
commit 53f603bf30

View File

@ -164,6 +164,10 @@ regex_checks = {
_("Unnecessary leading space")), _("Unnecessary leading space")),
(re.compile(r'.*\s$'), (re.compile(r'.*\s$'),
_("Unnecessary trailing space")), _("Unnecessary trailing space")),
(re.compile(r'.*<(iframe|link|script).*'),
_("Forbidden HTML tags")),
(re.compile(r'''.*\s+src=["']javascript:.*'''),
_("Javascript in HTML src attributes")),
], ],
} }