[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 08:48:19 CEST 2023


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

--- Comment #3 from David Cook <dcook at prosentient.com.au> ---
Created attachment 152229
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152229&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).

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


More information about the Koha-bugs mailing list