Skip to content

Commit

Permalink
Item13739: Need to encode using entityEncode
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Sep 27, 2015
1 parent 50fa872 commit 0e35357
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/lib/Foswiki/Users.pm
Expand Up @@ -1035,11 +1035,7 @@ sub passwordError {

return unless defined $error;

$error =~ s/&/&/g;
$error =~ s/</&lt;/g;
$error =~ s/>/&gt;/g;

return $error;
return Foswiki::entityEncode($error);
}

=begin TML
Expand Down

0 comments on commit 0e35357

Please sign in to comment.