aboutsummaryrefslogtreecommitdiff
path: root/delete_poll.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2019-01-07 21:45:08 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2019-01-07 21:45:08 +0100
commit4429d6269252a329fa579e19ff1a32ce694a5a4d (patch)
treed6feac12b6b75f949a4cd5d696d32d2d552fa7a9 /delete_poll.rb
parent426fc7d872fbbed0a64e015d69c34f399fa450d5 (diff)
proper output encoding of poll title
Diffstat (limited to 'delete_poll.rb')
-rwxr-xr-xdelete_poll.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/delete_poll.rb b/delete_poll.rb
index a88ec5d..624567c 100755
--- a/delete_poll.rb
+++ b/delete_poll.rb
@@ -106,7 +106,7 @@ else
end
$d.html << "<h2>" + _("Delete this poll") + "</h2>"
-$d.html << _("You want to delete the poll named") + " <b>#{$d.table.name}</b>.<br />"
+$d.html << _("You want to delete the poll named") + " <b>#{CGI.escapeHTML($d.table.name)}</b>.<br />"
$d.html << _("This is an irreversible action!") + "<br />"
$d.html << _("If you are sure that you want to permanently remove this poll, please type “%{question}” into the form.") % {:question => QUESTIONS[confirm]}
deletestr = _("Delete")