From 29c2595e34fdeb04e8f6700328d8bc84ece81e66 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Fri, 27 Nov 2009 15:33:22 +0100 Subject: two small bugfixes --- index.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'index.cgi') diff --git a/index.cgi b/index.cgi index e1737fc..df0a607 100755 --- a/index.cgi +++ b/index.cgi @@ -36,7 +36,7 @@ if $cgi.include?("create_poll") && $cgi.include?("poll_url") if $cgi["poll_url"] == "" POLLURL = `pwgen -1`.chomp else - OLLURL=$cgi["poll_url"] + POLLURL=$cgi["poll_url"] end @@ -61,8 +61,8 @@ if $cgi.include?("create_poll") && $cgi.include?("poll_url") Dir.chdir("..") $d.html.header["status"] = "REDIRECT" $d.html.header["Cache-Control"] = "no-cache" - $d.html.header["Location"] = SITEURL + "/edit_columns.cgi" - $d << "The poll was created successfully. The link to your new poll is:
#{escapedsite}" + $d.html.header["Location"] = SITEURL + POLLURL+ "/edit_columns.cgi" + $d << "The poll was created successfully. The link to your new poll is:
#{POLLURL}" end end -- cgit v1.2.3