diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-02-08 13:37:43 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-02-08 13:37:43 +0100 |
commit | a381395d4f66caa5f979071c7ffc3c6a70107cdf (patch) | |
tree | 753c82371b1b4b61a3b6811a6260e271ac8b0811 /poll.rb | |
parent | fe0e105b0db8ca8716a80ab7a0b2be5c990a23aa (diff) |
accept charset in forms
Diffstat (limited to 'poll.rb')
-rw-r--r-- | poll.rb | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -23,6 +23,7 @@ require "time" require "pollhead" require "timepollhead" +$KCODE = "u" class String def to_htmlID CGI.escapeHTML(self.gsub(/[^A-Z^a-z^0-9^\-^_^:^\.]/,".")) @@ -243,7 +244,7 @@ COMMENT saysstr = _("says") submitstr = _("Submit Comment") ret += <<ADDCOMMENT - <form method='post' action='.'> + <form method='post' action='.' accept-charset='utf-8'> <div class='comment' id='add_comment'> <input value='Anonymous' type='text' name='commentname' size='9' /> #{saysstr} <br /> |