[wp-trac] Re: [WordPress Trac] #4198: $_SERVER['REMOTE_ADDR'] is a
bad environmental variable for some people
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 9 19:46:34 GMT 2007
#4198: $_SERVER['REMOTE_ADDR'] is a bad environmental variable for some people
----------------------------+-----------------------------------------------
Reporter: technosailor | Owner: rob1n
Type: defect | Status: assigned
Priority: normal | Milestone: 2.3 (trunk)
Component: Administration | Version: 2.2
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+-----------------------------------------------
Comment (by hovenko):
The patch attached to this bug report will (at least might) break
functionality that depends on REMOTE_ADDR. Also it does not handle more
than one proxy server.
When using two or more proxy servers you will get a comma separated list
with all the IP addresses. Eks: "client, proxy1, proxy2".
Bug report #4602 adds a new function, wp_get_ip_address(), that solves
this.
--
Ticket URL: <http://trac.wordpress.org/ticket/4198#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list