]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
authorJoey Hess <joey@kitenet.net>
Thu, 28 Oct 2010 19:38:24 +0000 (15:38 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 28 Oct 2010 19:38:24 +0000 (15:38 -0400)
IkiWiki/Plugin/goto.pm
IkiWiki/Plugin/highlight.pm

index 42d2425ca2a0dbe85b172fee06eb63ec50b07d00..348a663efdd936d5004e0735ad41e4c393568c3e 100644 (file)
@@ -52,7 +52,7 @@ sub cgi_goto ($;$) {
                IkiWiki::redirect($q, $pagestate{$page}{meta}{permalink});
        }
 
-       if (! length $link) {
+       if (! defined $link || ! length $link) {
                IkiWiki::cgi_custom_failure(
                        $q,
                        "404 Not Found",
index 872537c726c2f62500e836babc9bccd50a2e95fd..934e64bed708f032283c11660add6ac02d8ffe4a 100644 (file)
@@ -74,7 +74,6 @@ sub checkconfig () {
                                },
                                longname => sprintf(gettext("Source code: %s"), $file),
                                @opts,
-                               last => 1,
                        );
                }
        }