* Fix a bug that caused link(foo) to succeed if page foo did not exist.

master
joey 2007-04-04 20:57:13 +00:00
parent b8be74be61
commit 83618add81
3 changed files with 7 additions and 5 deletions

View File

@ -1027,6 +1027,7 @@ sub match_link ($$$) { #{{{
my $links = $IkiWiki::links{$page} or return undef;
return 0 unless @$links;
my $bestlink = IkiWiki::bestlink($from, $link);
return 0 unless length $bestlink;
foreach my $p (@$links) {
return 1 if $bestlink eq IkiWiki::bestlink($page, $p);
}

3
debian/changelog vendored
View File

@ -21,8 +21,9 @@ ikiwiki (1.49) UNRELEASED; urgency=low
tracked properly.
* Make the OpenID library a reccommendation of the Debian package, rather
than just a suggests, since OpenID is enabled by default.
* Fix a bug that caused link(foo) to succeed if page foo did not exist.
-- Joey Hess <joeyh@debian.org> Tue, 03 Apr 2007 20:40:27 -0400
-- Joey Hess <joeyh@debian.org> Wed, 04 Apr 2007 16:55:36 -0400
ikiwiki (1.48) unstable; urgency=low

View File

@ -1,8 +1,8 @@
Since we have enough people working on ikiwiki to be dangerous, or at least
to duplicate work without coordination, and since Joey is still the only
one committing directly to the tree, here's a queue of suggested patches.
to duplicate work without coordination, and since few people have direct
commit access to the tree, here's a queue of suggested patches.
Feel free to either copy the patch inline, or link to one elsewhere (or nag
Joey to open up anonymous svn access to this wiki so you can check in the
[[Joey]] to open up anonymous svn access to this wiki so you can check in the
patches directly).
[[inline pages="patchqueue/* and !patchqueue/done and !link(patchqueue/done) and !*/Discussion" rootpage="patchqueue" archive="yes"]]
[[inline pages="patchqueue/* and !*/Discussion" rootpage="patchqueue" archive="yes"]]