Skip to content

Commit

Permalink
Item13331: Missed encoding entities
Browse files Browse the repository at this point in the history
And need to update the manifest.
  • Loading branch information
gac410 committed Apr 18, 2015
1 parent 203b59d commit 6c4b40e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/Foswiki/Contrib/core/MANIFEST
Expand Up @@ -896,6 +896,7 @@ templates/edittext.tmpl 0444
templates/form.tmpl 0444
templates/formtables.tmpl 0444
templates/foswiki.tmpl 0444
templates/html.tmpl 0444
templates/itemview.tmpl 0444
templates/login.sudo.tmpl 0444
templates/login.tmpl 0444
Expand Down
1 change: 1 addition & 0 deletions core/lib/Foswiki/Render/HTML.pm
Expand Up @@ -73,6 +73,7 @@ sub textfield {
$session->templates->readTemplate('html');
my $tmpl = $session->templates->expandTemplate('textfield');

$text = Foswiki::entityEncode($value);
$tmpl =~ s/%CLASS%/$class/;
$tmpl =~ s/%DISABLED%/$disabled/;
$tmpl =~ s/%ID%/$id/;
Expand Down

0 comments on commit 6c4b40e

Please sign in to comment.