Skip to content

Commit

Permalink
Item13216: Localize %Foswiki::cfg hash in check_current_value
Browse files Browse the repository at this point in the history
It was changing the running config which is a big issue in persistent perl.
  • Loading branch information
gac410 committed Jan 15, 2015
1 parent 98d5fba commit b0906d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/lib/Foswiki/Configure/Query.pm
Expand Up @@ -292,6 +292,8 @@ key) will be checked, and *not* the subkey.
sub check_current_value {
my ( $params, $frep ) = @_;

local %Foswiki::cfg = %Foswiki::cfg;

# Load the spec files
my $root = Foswiki::Configure::Root->new();
Foswiki::Configure::LoadSpec::readSpec( $root, $frep );
Expand Down

0 comments on commit b0906d4

Please sign in to comment.