[Koha-bugs] [Bug 33967] REMOTE_ADDR incorrect in plack.log when run behind a proxy

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 9 13:39:33 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33967

--- Comment #7 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 152242
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152242&action=edit
Bug 33967: Add unit test to ensure SetEnv doesn't compromise $env

This patch includes a unit test which checks the memory address
of the $env hashref in middlewares before and after
Koha::Middleware::Env is applied.

It succeeds when the same $env is maintained before and after
this middleware. It fails if the $env has been overwritten with
a new hashref (as evidenced by the new memory address for the
hash).

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list