Skip to content

Commit

Permalink
Item952: suppressed parameters not provided to error messages
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@2492 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Feb 14, 2009
1 parent a583ec9 commit 2a9171f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/lib/Foswiki.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,8 @@ sub inlineAlert {
$text =~ s/%PARAM$n%/$param/g;
$n++;
}

# Suppress missing params
$text =~ s/%PARAM\d+%//g;
}
else {
$text =
Expand Down
4 changes: 2 additions & 2 deletions core/lib/Foswiki/UI/Oops.pm
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ sub oops {
$tmplData =~ s/%PARAM$n%/$param/g;
$n++;
}
$tmplData =~ s/%(PARAM\d+)%/
CGI::span({class=>'foswikiAlert'},"MISSING $1 ")/ge if DEBUG;
# Suppress missing params
$tmplData =~ s/%PARAM\d+%//g;
$tmplData = $session->handleCommonTags( $tmplData, $web, $topic );
$tmplData =
$session->renderer->getRenderedVersion( $tmplData, $web, $topic );
Expand Down

0 comments on commit 2a9171f

Please sign in to comment.