aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-01-27 17:32:51 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-01-27 17:32:51 +0000
commitdbbc8d950d8e63bb033229198f379abaa7d507e2 (patch)
tree7753449389c543db2978c3c422d93b9f4c7b9186
parent2d6af993630d9e43594975e093507ee62ed53b97 (diff)
Allow img elements in scrubbed fields.
-rw-r--r--perllib/FixMyStreet/Template.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Template.pm b/perllib/FixMyStreet/Template.pm
index afab83e41..ffebb00cf 100644
--- a/perllib/FixMyStreet/Template.pm
+++ b/perllib/FixMyStreet/Template.pm
@@ -144,6 +144,7 @@ sub sanitize {
rules => [
%allowed_tags,
a => { href => qr{^(http|/|tel)}i, style => 1, target => qr/^_blank$/, title => 1 },
+ img => { src => 1, alt => 1, width => 1, height => 1, hspace => 1, vspace => 1, align => 1, sizes => 1, srcset => 1 },
font => { color => 1 },
span => { style => 1 },
]