From 50e5dbbf4b6fd1593396437ef05d8e6902c0f17c Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Thu, 14 Apr 2016 22:44:44 +0200 Subject: Bugfix for & in participant names - Store real string every time - do sanitization when strings are printed to html Closes: #16 --- pollhead.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pollhead.rb') diff --git a/pollhead.rb b/pollhead.rb index 732f300..ac8d9bd 100644 --- a/pollhead.rb +++ b/pollhead.rb @@ -45,7 +45,7 @@ class PollHead parsedtitle = newtitle.strip if parsedtitle != "" - @data[parsedtitle] = CGI.escapeHTML(cgi["columndescription"].strip) + @data[parsedtitle] = cgi["columndescription"].strip return parsedtitle else return false @@ -61,10 +61,10 @@ SORTSYMBOL ret = "" ret += "" + _("Name") + " #{sortsymb(scols,"name")}\n" unless showeditbuttons @data.sort.each{|columntitle,columndescription| - ret += "" unless showeditbuttons + ret += "" unless showeditbuttons ret += "#{CGI.escapeHTML(columntitle)}" ret += "#{sortsymb(scols,columntitle)}" unless showeditbuttons if showeditbuttons @@ -73,7 +73,7 @@ SORTSYMBOL ret += <
- + #{EDIT} | @@ -110,7 +110,7 @@ EDITDELETE - + -- cgit v1.2.3