]> git.koha-community.org Git - koha.git/commit
Bug 25950: Remove <client> in X-Forwarded-For from proxy tests
authorDavid Cook <dcook@prosentient.com.au>
Wed, 8 Jul 2020 07:10:50 +0000 (07:10 +0000)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Thu, 30 Jul 2020 13:26:38 +0000 (01:26 +1200)
commite119734445fb8fcaaded84e0b25b5a9056a5b2de
tree41e3ad9579d2de7858b566f23e98b14a8f9bec86
parent39547a6279e418823a23809c813dc198a07eca75
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@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 7b84fda33b23347846ae50016f1e4b38b0fd95f4)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 8c27b372a4968d5b0d99e512a781302f09a769bf)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Koha/Middleware/RealIP.pm
t/Koha/Middleware/RealIP.t