[Koha-bugs] [Bug 25950] REMOTE_ADDR set to null if client_ip in X-Forwarded-For matches a koha_trusted_proxies value
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jul 9 16:48:06 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25950
didier <didier.gautheron at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #106647|0 |1
is obsolete| |
--- Comment #6 from didier <didier.gautheron at biblibre.com> ---
Created attachment 106722
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106722&action=edit
Bug 25950: Remove <client> in X-Forwarded-For from proxy tests
This patch removes the <client> ip address in the X-Forwarded-For
header from being tested against koha_trusted_proxies.
Without this patch, REMOTE_ADDR will be set to null, if the <client>
ip address matches against koha_trusted_proxies.
To Test:
1. Run the unit test t/Koha/Middleware/RealIP.t
Signed-off-by: Didier Gautheron <didier.gautheron at biblibre.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list