aboutsummaryrefslogtreecommitdiff
path: root/poll.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-06-10 23:38:53 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-06-10 23:38:53 +0200
commitce9d419305f36937cd8f5d7ba6793ba4dbf6135c (patch)
tree3a7128d6e444238369929c4c4336715f4ea0930b /poll.rb
parent4d9d211e41d983dbaed50524cc0a91666d3bf728 (diff)
validated for xhtml1.1 conformity
Diffstat (limited to 'poll.rb')
-rw-r--r--poll.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/poll.rb b/poll.rb
index 784f322..cdf1957 100644
--- a/poll.rb
+++ b/poll.rb
@@ -64,7 +64,7 @@ class Poll
when MAYBEVAL
value = MAYBE
end
- ret += "<td class='#{klasse}' title='#{participant}: #{columntitle}'>#{value}</td>\n"
+ ret += "<td class='#{klasse}' title=\"#{CGI.escapeHTML(participant)}: #{columntitle}\">#{value}</td>\n"
}
ret += "<td class='date'>#{poll['timestamp'].strftime('%d.%m, %H:%M')}</td>"
ret += "</tr>\n"
@@ -184,7 +184,7 @@ COMMENT
<div>
<fieldset>
<legend>
- <input value='anonymous' type='text' name='commentname' size='9ex' /> says&nbsp;
+ <input value='anonymous' type='text' name='commentname' size='9' /> says&nbsp;
</legend>
<textarea cols='50' rows='7' name='comment' ></textarea>
<br /><input type='submit' value='Submit comment' />