From 25513fb7fb4a366d6d91cb0fcbd36d881bec7c62 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 18 May 2021 11:26:25 +0200 Subject: [PATCH] Bug 28367: (follow-up) Fix plack condition in C4/Auth_with_shibboleth.pm There were 2 occurrences! Signed-off-by: Jonathan Druart (cherry picked from commit ecb0ff8bbef93cabfd7a346254bb928a5af1a915) Signed-off-by: Fridolin Somers (cherry picked from commit 69f55189d1fa26dbe50b5c85d831a1e5df6d73c1) Signed-off-by: Andrew Fuerste-Henry (cherry picked from commit 4579636290927942f41d63e486267c8e5e6bacb8) Signed-off-by: Victor Grousset/tuxayo --- C4/Auth_with_shibboleth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth_with_shibboleth.pm b/C4/Auth_with_shibboleth.pm index 2b59f86c05..0f11d353ef 100644 --- a/C4/Auth_with_shibboleth.pm +++ b/C4/Auth_with_shibboleth.pm @@ -132,7 +132,7 @@ sub _autocreate { my %borrower = ( $config->{matchpoint} => $match ); while ( my ( $key, $entry ) = each %{$config->{'mapping'}} ) { - if ( any { /(^psgi|^plack)/i } keys %ENV ) { + if ( any { /(^psgi\.|^plack\.)/i } keys %ENV ) { $borrower{$key} = ( $entry->{'is'} && $ENV{"HTTP_" . uc($entry->{'is'}) } ) || $entry->{'content'} || ''; } else { $borrower{$key} = ( $entry->{'is'} && $ENV{ $entry->{'is'} } ) || $entry->{'content'} || ''; -- 2.39.5