]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Jul 2020 10:37:29 +0000 (12:37 +0200)
commit7b84fda33b23347846ae50016f1e4b38b0fd95f4
tree0d7eba7d5cfedd5ddb2995ce9fa64f5797bc6925
parent56220d211d7b5c4e2622787f9ea38ab12c8868f5
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>
Koha/Middleware/RealIP.pm
t/Koha/Middleware/RealIP.t