Bug 28367: (follow-up) Fix plack condition in C4/Auth_with_shibboleth.pm master origin/master
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 18 May 2021 09:26:25 +0000 (11:26 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 18 May 2021 09:26:27 +0000 (11:26 +0200)
There were 2 occurrences!

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Auth_with_shibboleth.pm

index 2b59f86..0f11d35 100644 (file)
@@ -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'} || '';