Skip to content

Commit

Permalink
Item13302: encode double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Mar 10, 2015
1 parent 0fe87a4 commit 385b7c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/lib/Foswiki/UI/ChangeForm.pm
Expand Up @@ -109,9 +109,9 @@ sub generate {
$page = $topicObject->expandMacros($page);
$page = $topicObject->renderTML($page);

$text = '<input type="hidden" name="text" value="'
. scalar( $q->param('text') ) . '"/>';

my $val = scalar( $q->param('text') );
$val =~ s/\"/&quot;/g;
$text = "<input type=\"hidden\" name=\"text\" value=\"$val\" />";
$page =~ s/%TEXT%/$text/g;

return $page;
Expand Down

0 comments on commit 385b7c1

Please sign in to comment.