aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-01-29 14:58:51 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-01-29 14:58:51 +0000
commit9dcf91fc220f3251ce3d301d4de519bb9edad5e1 (patch)
tree509a4754198b6ee44ef6ad9e00fa0e9d72536ece
parent2415a520133596dcc341d1f88f9753d47ba56d41 (diff)
parentdbbc8d950d8e63bb033229198f379abaa7d507e2 (diff)
Merge branch 'scrubber-allow-img'
-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 },
]