Contributed by: Anonymous Sunday, October 13 2002 @ 02:15 am EDT
Polls do not work correctly for virtual sites on Mac OS X 10.2 from a regular install of GeekLog, the only flaw I have yet detected.
Mac OS X sets the environment variable REMOTE_ADDR to the IP of the server, not the remote user! Thus all votes appear to come from the same IP number.
As polls are restricted to one vote per IP number, only one vote can be cast for the entire site.
A quick fix is to put the following line at the beginning
which will set REMOTE_ADDR to the correct remote address.