From 673d6c958050b7ce07d5d8512d5370f9531225cd Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 21 Apr 2010 19:45:56 -0400 Subject: [PATCH] add missing undef guard in derel --- IkiWiki.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.26.2