From: Joey Hess Date: Wed, 21 Apr 2010 23:45:56 +0000 (-0400) Subject: add missing undef guard in derel X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/673d6c958050b7ce07d5d8512d5370f9531225cd add missing undef guard in derel --- diff --git a/IkiWiki.pm b/IkiWiki.pm index 4084d4997..8af290745 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -2245,7 +2245,7 @@ sub derel ($$) { if ($path =~ m!^\./!) { $from=~s#/?[^/]+$## if defined $from; $path=~s#^\./##; - $path="$from/$path" if length $from; + $path="$from/$path" if defined $from && length $from; } return $path;