From poll.module:
+++ modules/poll/poll.module 25 Jan 2010 21:34:11 -0000
@@ -720,7 +720,8 @@ function poll_vote($form, &$form_state)
- 'hostname' => $user->uid ? ip_address() : '',
+ 'hostname' => $user->uid ? '' : ip_address(),
It doesn't make a lot of sense to only store the hostname for anonymous users. Some extra history in #602998-12: Poll vote missing timestamp and broken for anon users
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 702134-poll-hostnames.patch | 1.9 KB | aaronbauman |
| #1 | 702134-grndlvl-1.patch | 1.26 KB | grndlvl |
Comments
Comment #1
grndlvl commentedMade change to store the hostname for all users for polls.
Needed to change poll_load query for anon users so that it does not do the lookup completely based on the hostname but also user.uid = 0.
Comment #2
grndlvl commentedComment #3
aaronbaumanRerolled @ HEAD
It took me a second to figure out where hunk #1 failed, so I added some comments.
Comment #4
jhodgdonThese changes look reasonable, the comments are helpful, and the patch is clean.
Comment #5
dries commentedCommitted to CVS HEAD. Thanks.