aboutsummaryrefslogtreecommitdiff
path: root/poll.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-02-15 16:08:37 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-02-15 16:08:37 +0100
commit469dd956ae2f9722dca50efa02f64c7b45865f78 (patch)
tree9a5022da2be8d2d9dd5425e49146e62de4f1ceb9 /poll.rb
parent63b13b11d0c1b80bc3de67f8478d7eeaacabb617 (diff)
use username cookie for comment
Diffstat (limited to 'poll.rb')
-rw-r--r--poll.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/poll.rb b/poll.rb
index 6f49ed3..d7f7e2b 100644
--- a/poll.rb
+++ b/poll.rb
@@ -246,7 +246,7 @@ COMMENT
ret += <<ADDCOMMENT
<form method='post' action='.' accept-charset='utf-8'>
<div class='comment' id='add_comment'>
- <input value='Anonymous' type='text' name='commentname' size='9' /> #{saysstr}&nbsp;
+ <input value='#{$cgi.cookies["username"][0] || "Anonymous"}' type='text' name='commentname' size='9' /> #{saysstr}&nbsp;
<br />
<textarea cols='50' rows='7' name='comment' ></textarea>
<br /><input type='submit' value='#{submitstr}' />