aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index ef8ccb2da..35e64d815 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -1072,6 +1072,8 @@ sub urlabs ($$) {
my $url=shift;
my $urlbase=shift;
+ return $url unless defined $urlbase && length $urlbase;
+
eval q{use URI};
URI->new_abs($url, $urlbase)->as_string;
}