chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f094054
)
lint: check description for forbidden HTML tags: iframe, link, script, etc.
author
Hans-Christoph Steiner
<hans@eds.org>
Tue, 23 Jan 2018 16:13:49 +0000
(17:13 +0100)
committer
Hans-Christoph Steiner
<hans@eds.org>
Fri, 26 Jan 2018 09:18:41 +0000
(10:18 +0100)
fdroidserver/lint.py
patch
|
blob
|
history
diff --git
a/fdroidserver/lint.py
b/fdroidserver/lint.py
index a5ed3637dcf35981463a689390a0612fa72bdb51..0f6252b02a1aae9aabe2fbcace59e95903418f61 100644
(file)
--- a/
fdroidserver/lint.py
+++ b/
fdroidserver/lint.py
@@
-164,6
+164,10
@@
regex_checks = {
_("Unnecessary leading space")),
(re.compile(r'.*\s$'),
_("Unnecessary trailing space")),
_("Unnecessary leading space")),
(re.compile(r'.*\s$'),
_("Unnecessary trailing space")),
+ (re.compile(r'.*<(iframe|link|script).*'),
+ _("Forbidden HTML tags")),
+ (re.compile(r'''.*\s+src=["']javascript:.*'''),
+ _("Javascript in HTML src attributes")),
],
}
],
}