aboutsummaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.cgi b/index.cgi
index deb76c7..6bd07aa 100755
--- a/index.cgi
+++ b/index.cgi
@@ -37,7 +37,7 @@ if $cgi.include?("create_poll") && $cgi.include?("poll_url")
createnotice = "Please enter a descriptive title."
else
if $cgi["poll_url"] == ""
- if POLLTITLE =~ /^[\w\-_]*$/
+ if POLLTITLE =~ /^[\w\-_]*$/ && !File.exist?(POLLTITLE)
POLLURL = POLLTITLE
else
POLLURL = `pwgen -1`.chomp