From: <de...@de...> - 2011-12-14 22:26:23
|
Author: PeterThoeny Date: 2011-12-14 16:26:16 -0600 (Wed, 14 Dec 2011) New Revision: 22452 Trac url: http://develop.twiki.org/trac/changeset/22452 Modified: twiki/trunk/core/lib/TWiki/Configure/Load.pm Log: Item6825: Fix for RE error in Load.pm -- thanks TWiki:Main.PhillipHuang Modified: twiki/trunk/core/lib/TWiki/Configure/Load.pm =================================================================== --- twiki/trunk/core/lib/TWiki/Configure/Load.pm 2011-12-13 04:54:54 UTC (rev 22451) +++ twiki/trunk/core/lib/TWiki/Configure/Load.pm 2011-12-14 22:26:16 UTC (rev 22452) @@ -109,7 +109,7 @@ if (ref($_) eq 'HASH') { expand(\%$_); } else { - s/(\$TWiki::cfg{[[A-Za-z0-9{}]+})/eval $1||'undef'/ge; + s/(\$TWiki::cfg{[A-Za-z0-9{}]+})/eval $1||'undef'/ge; } } } @@ -129,7 +129,7 @@ =cut sub expandValue { - $_[0] =~ s/(\$TWiki::cfg{[[A-Za-z0-9{}]+})/eval $1||'undef'/ge; + $_[0] =~ s/(\$TWiki::cfg{[A-Za-z0-9{}]+})/eval $1||'undef'/ge; } =pod |