aboutsummaryrefslogtreecommitdiff
path: root/customize.rb
diff options
context:
space:
mode:
Diffstat (limited to 'customize.rb')
-rwxr-xr-xcustomize.rb2
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