From 92340d03afdee37504afdb792d41b2cad425481a Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 24 Apr 2020 10:25:04 +0200 Subject: [PATCH] Bug 20582: Suppress warning in CGIBinKoha.pm Signed-off-by: Jerome Charaoui Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- Koha/App/Plugin/CGIBinKoha.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/App/Plugin/CGIBinKoha.pm b/Koha/App/Plugin/CGIBinKoha.pm index a7fba5ae7c..197e9f70f1 100644 --- a/Koha/App/Plugin/CGIBinKoha.pm +++ b/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); -- 2.39.5