Rate uses $_SERVER['REMOTE_ADDR'] to find out the IP of the current use, to be able to find out if the user already voted. It should use the ip_address() function to be able to function correctly behind a reverse proxy, like votingapi already does.

Patch to fix this, is attached.

Note that this issue is assigned to 6.x-1.x branch, but applies to all versions of Rate.

CommentFileSizeAuthor
rate.ip_address.patch595 bytesrolf van de krol

Comments

mauritsl’s picture

Status: Needs review » Fixed

(Heee Rolf)

Committed to GIT. Thanks for the patch!

Will be available in 6.x-1.4 and 7.x-1.4 releases.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.