]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Fix a bug that caused link(foo) to succeed if page foo did not exist.
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 4 Apr 2007 20:57:13 +0000 (20:57 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 4 Apr 2007 20:57:13 +0000 (20:57 +0000)
IkiWiki.pm
debian/changelog
doc/patchqueue.mdwn

index c272a294e9e912e6be2b7d6e5093795b069118bc..8f9bd990a02c48a26a249e36e3df245807dbedec 100644 (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);
        }
index ee7af7399bdb4a096de14899ad84cc4115242b9c..0b8c28d1d97ae777fb4acdd02c1a7d82ee1b053e 100644 (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
 
index 27025693ebb815580efaefb3147d8dbe0d5fd35a..09a63cae5b1bbea36add74b2fafb83251e53060a 100644 (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"]]