From: Joey Hess Date: Tue, 26 Oct 2010 03:31:41 +0000 (-0400) Subject: squash undef X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ac6b5c12fa9c834555fde4a4cf06db7b792556d4;p=ikiwiki.git squash undef --- diff --git a/IkiWiki/Plugin/goto.pm b/IkiWiki/Plugin/goto.pm index 42d2425ca..348a663ef 100644 --- a/IkiWiki/Plugin/goto.pm +++ b/IkiWiki/Plugin/goto.pm @@ -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",