Skip to content

Commit

Permalink
Item1566: fix infinite loop
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@3816 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GilmarSantosJr authored and GilmarSantosJr committed May 5, 2009
1 parent da16dc0 commit 131159c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/Foswiki/Prefs.pm
Expand Up @@ -262,7 +262,8 @@ sub _restore {
foreach ( keys %{ $this->{'map'} } ) {
$this->{'map'}{$_} &= $mask;
substr( $this->{'map'}{$_}, -1 ) = ''
while ord( substr( $this->{'map'}{$_}, -1 ) ) == 0;
while length( $this->{'map'}{$_} ) > 0
&& ord( substr( $this->{'map'}{$_}, -1 ) ) == 0;
delete $this->{'map'}{$_} if length( $this->{'map'}{$_} ) == 0;
}

Expand Down

0 comments on commit 131159c

Please sign in to comment.