Mailing List Archive

[6858] cherokee/trunk/admin/CgiBase.py: The 'X-Forwarded-For' is accepted where 'X-Real-IP' is.
Revision: 6858
http://svn.cherokee-project.com/changeset/6858
Author: alo
Date: 2011-09-16 21:18:49 +0200 (Fri, 16 Sep 2011)
Log Message:
-----------
The 'X-Forwarded-For' is accepted where 'X-Real-IP' is. This patch
clarifies it on the notice messages of the CGI related plug-ins in
Cherokee Admin. Fixes #997: http://bugs.cherokee-project.com/997

Modified Paths:
--------------
cherokee/trunk/admin/CgiBase.py

Modified: cherokee/trunk/admin/CgiBase.py
===================================================================
--- cherokee/trunk/admin/CgiBase.py 2011-09-16 15:41:07 UTC (rev 6857)
+++ cherokee/trunk/admin/CgiBase.py 2011-09-16 19:18:49 UTC (rev 6858)
@@ -35,9 +35,9 @@
NOTE_CHECK_FILE = N_('Check whether the file is in place.')
NOTE_PASS_REQ = N_('Forward all the client headers to the CGI encoded as HTTP_*. headers.')
NOTE_XSENDFILE = N_('Allow the use of the non-standard X-Sendfile header.')
-NOTE_X_REAL_IP = N_('Whether the handler should read and use the X-Real-IP header and use it in REMOTE_ADDR.')
-NOTE_X_REAL_IP_ALL = N_('Accept all the X-Real-IP headers. WARNING: Turn it on only if you are centain of what you are doing.')
-NOTE_X_REAL_IP_ACCESS = N_('List of IP addresses and subnets that are allowed to send the X-Real-IP header.')
+NOTE_X_REAL_IP = N_('Whether the handler should read and use the X-Real-IP and X-Forwarded-For headers and use it in REMOTE_ADDR.')
+NOTE_X_REAL_IP_ALL = N_('Accept all the X-Real-IP and X-Forwarded-For headers. WARNING: Turn it on only if you are centain of what you are doing.')
+NOTE_X_REAL_IP_ACCESS = N_('List of IP addresses and subnets that are allowed to send the X-Real-IP and X-Forwarded-For headers.')

HELPS = [('modules_handlers_cgi', "CGIs")]