Skip to content

Commit

Permalink
Item13739: error can be undef
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Sep 22, 2015
1 parent 84f4ba6 commit 80fd6e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/lib/Foswiki/Users.pm
Expand Up @@ -1032,6 +1032,9 @@ sub passwordError {
my ( $this, $cUID ) = @_;

my $error = $this->_getMapping($cUID)->passwordError();

return unless defined $error;

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

0 comments on commit 80fd6e1

Please sign in to comment.