Browse Source

Bug 20582: Suppress warning in CGIBinKoha.pm

Signed-off-by: Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
20.11.x
Julian Maurice 2 years ago
committed by Jonathan Druart
parent
commit
92340d03af
  1. 2
      Koha/App/Plugin/CGIBinKoha.pm

2
Koha/App/Plugin/CGIBinKoha.pm

@ -85,7 +85,7 @@ sub _psgi_env {
# Starman sets PATH_INFO to the same value of SCRIPT_NAME, which confuses
# CGI and causes the redirect after OPAC login to fail
delete $env->{PATH_INFO} if ($env->{PATH_INFO} eq $env->{SCRIPT_NAME});
delete $env->{PATH_INFO} if ($env->{PATH_INFO} && $env->{PATH_INFO} eq $env->{SCRIPT_NAME});
for my $name (@{ $c->req->headers->names }) {
my $value = $c->req->headers->header($name);

Loading…
Cancel
Save