Skip to content

Commit

Permalink
Item9331: Ignore commented config statement
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@8246 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Jul 19, 2010
1 parent 873cd07 commit 745216b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Configure/FoswikiCfg.pm
Expand Up @@ -407,7 +407,7 @@ sub startVisit {
$txt =~ s/VAR1/Foswiki::cfg$keys/;

# Substitute any existing value, or append if not there
unless ( $this->{content} =~ s/\$(Foswiki::)?cfg$keys\s*=.*?;\n/$txt/s )
unless ( $this->{content} =~ s/^\s*?\$(Foswiki::)?cfg$keys\s*=.*?;\n/$txt/ms )
{
$this->{content} .= $txt;
}
Expand Down

0 comments on commit 745216b

Please sign in to comment.