diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-04-30 13:12:19 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-04-30 13:12:19 +0200 |
commit | 3034664aa1352e65b64701ff18f9f28dfd45400c (patch) | |
tree | 36fe4b7470279d8aed21f08cf94834976cc3fbeb /index.cgi | |
parent | 3e6440ec3d74a77f1e7d831c1db34b792e2f1e54 (diff) |
remove usage of pwgen
Diffstat (limited to '')
-rwxr-xr-x | index.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -40,7 +40,8 @@ if $cgi.include?("create_poll") && $cgi.include?("poll_url") if POLLTITLE =~ /^[\w\-_]*$/ && !File.exist?(POLLTITLE) POLLURL = POLLTITLE else - POLLURL = `pwgen -1`.chomp + chars = ("a".."z").to_a + ("1".."9").to_a + POLLURL = Array.new(8){chars[rand(chars.size)]}.join end else POLLURL=$cgi["poll_url"] |