aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindex.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.cgi b/index.cgi
index ff884c2..c519d5d 100755
--- a/index.cgi
+++ b/index.cgi
@@ -66,7 +66,7 @@ if $cgi.include?("create_poll") && $cgi.include?("poll_url")
File.open(f,"w").close
VCS.add(f)
}
- Poll.new(POLLTITLE,$cgi["poll_type"])
+ Poll.new(CGI.escapeHTML(POLLTITLE),$cgi["poll_type"])
Dir.chdir("..")
$d.html.header["status"] = "REDIRECT"
$d.html.header["Cache-Control"] = "no-cache"