diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-01-18 12:50:45 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-01-18 12:50:45 +0100 |
commit | 8f8f6721d17f0d4724d1572f0247c33daf405ef3 (patch) | |
tree | 774c4a3c2da84a2d3c839bf4a6e250d912fedd27 /index.cgi | |
parent | 91f39f17d91499fd653f497001b5c7a1b0b020f3 (diff) |
allow 2 polls with same title
Diffstat (limited to 'index.cgi')
-rwxr-xr-x | index.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |