Skip to content

Commit

Permalink
Item14152: doc handler encodes SMELL's comments to protect them from …
Browse files Browse the repository at this point in the history
…TML formatting.
  • Loading branch information
vrurg committed Sep 7, 2016
1 parent 55bb1bd commit d12ad13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/lib/Foswiki/IncludeHandlers/doc.pm
Expand Up @@ -116,7 +116,10 @@ s/^---\+(?:!!)?\s+package\s*(.*)/---+ =$visibility package= $1/;
&& $showSmells )
{
$howSmelly++;
$pod .= "<blockquote class=\"foswikiAlert\">$line</blockquote>";
$pod .=
"<blockquote class=\"foswikiAlert\">"
. Foswiki::entityEncode($line)
. "</blockquote>";
}
}
close($PMFILE);
Expand Down

0 comments on commit d12ad13

Please sign in to comment.