Skip to content

Commit

Permalink
Item2387: an invalid revision tag must not fall back to revision 1, i…
Browse files Browse the repository at this point in the history
…t must fall back to the "latest" revision. that is cleanUpRevID('') -> 0

git-svn-id: http://svn.foswiki.org/trunk@5601 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Nov 23, 2009
1 parent ba33ade commit 7ad2e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Store.pm
Expand Up @@ -103,7 +103,7 @@ sub cleanUpRevID {
$rev =~ s/[^\d]//g; # digits only

#ill formed rev's are still valid (see MetaTests::test_BadRevisionInfo)
$rev = '1' if ($rev eq '');
$rev = 0 if ($rev eq '');

return Foswiki::Sandbox::untaintUnchecked($rev);
}
Expand Down

0 comments on commit 7ad2e58

Please sign in to comment.