Skip to content

Commit

Permalink
Issue #1043: localize changes to %ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed May 29, 2021
1 parent 0560ff8 commit 9c4e311
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bin/psgi-bin/otobo.psgi
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ use lib "$Bin/../../Custom";
## nofilter(TidyAll::Plugin::OTOBO::Perl::SyntaxCheck)
## nofilter(TidyAll::Plugin::OTOBO::Perl::Time)

## no critic qw(Variables::RequireLocalizedPunctuationVars)

# This package is used by rpc.pl.
# NOTE: this is mostly untested
package OTOBO::RPC {
Expand Down Expand Up @@ -356,11 +354,11 @@ my $SetEnvMiddleWare = sub {
my $Env = shift;

# only the side effects are important
$ENV{OTOBO_RUNS_UNDER_PSGI} = '1';
$ENV{GATEWAY_INTERFACE} = 'CGI/1.1';
local $ENV{OTOBO_RUNS_UNDER_PSGI} = '1';
local $ENV{GATEWAY_INTERFACE} = 'CGI/1.1';

# enable for debugging UrlMap
#$ENV{PLACK_URLMAP_DEBUG} = 1;
#local $ENV{PLACK_URLMAP_DEBUG} = 1;

return $App->($Env);
};
Expand Down

0 comments on commit 9c4e311

Please sign in to comment.