Active
Project:
Vote Up/Down
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 Jun 2007 at 20:29 UTC
Updated:
18 Apr 2017 at 04:21 UTC
Jump to comment: Most recent
When using proxy-cache mechanisms like Varnish or SquidCache anonymous users get's the same ip.
By using the current
"function _vote_up_down_get_uid in vote_up_down.module"
will only allow one anonymous user to add vote.
The solution is to check that the variable
$_SERVER['HTTP_X_FORWARDED_FOR']
isset like they do in the
"function votinapi_add_vote in the votinapi.module"
.
Check attached file for a propose on a solution.
| Comment | File | Size | Author |
|---|---|---|---|
| patch_144.txt | 684 bytes | deplifer |
Comments
Comment #1
deplifer commentedSorry for the mistype in votingapi.
Comment #2
frjo commentedCommitted to HEAD, thanks for the code! Please try it out and report back here.
Comment #3
(not verified) commentedComment #4
jenlamptonLooks like this is also an issue for the 7.x version.
Comment #6
rickharington commentedNot sure if this is related but I;'m just using standard caching on my views (where I have the widget enabled) and anonymous users are shown that they have already voted. Is this related or a separate/new issue?