projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avoid uninitlized value when urlto is called with 1 parameter and no url is configured
[ikiwiki.git]
/
IkiWiki.pm
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index 7d1f5c401f3daf6f6eeb7726a46e2f36fa1a7356..9de25a4b31dc46dd450b2a6ab60261f44e9f0401 100644
(file)
--- a/
IkiWiki.pm
+++ b/
IkiWiki.pm
@@
-1168,7
+1168,7
@@
sub urlto ($;$$) {
}
if (! defined $from) {
- my $u = $local_url;
+ my $u = $local_url
|| ''
;
$u =~ s{/$}{};
return $u.beautify_urlpath("/".$to);
}