diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2011-05-18 13:49:25 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2011-05-18 13:49:25 +0200 |
commit | 23f601dd30017153ffb457401a37952e03f9c095 (patch) | |
tree | 158dc30b1e6adf1270ed259dfa164222689f1340 /customize.rb | |
parent | 70c402c59b646e1a4f103114ff189770228eb6e2 (diff) |
Disallow empty username
Diffstat (limited to 'customize.rb')
-rwxr-xr-x | customize.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/customize.rb b/customize.rb index f69d6b4..af64fa3 100755 --- a/customize.rb +++ b/customize.rb @@ -72,7 +72,7 @@ username = $cgi.cookies["username"][0] if $cgi.include?("delete_username") $d.html.add_cookie("username","","/",Time.now - 1*60*60*24*365) username = nil -elsif $cgi.include?("username") +elsif $cgi.include?("username") && $cgi["username"] != "" username = $cgi["username"] $d.html.add_cookie("username",username,"/",Time.now + 1*60*60*24*365) end |