diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-04 20:57:13 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-04 20:57:13 +0000 |
commit | 83618add817c1b405d67801d49b6937f0101bace (patch) | |
tree | c10dafc5bd2b7f8f45b227f4c484d30963c2d009 /IkiWiki.pm | |
parent | b8be74be61bddae508802203685903061dd5b4ed (diff) | |
download | ikiwiki-83618add817c1b405d67801d49b6937f0101bace.tar ikiwiki-83618add817c1b405d67801d49b6937f0101bace.tar.gz |
* Fix a bug that caused link(foo) to succeed if page foo did not exist.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index c272a294e..8f9bd990a 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -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); } |