wikiname => "wiki",
default_pageext => "mdwn",
cgi => 0,
- rcs => 'svn',
+ rcs => '',
notify => 0,
url => '',
cgiurl => '',
my $link=shift;
my $cwd=$page;
-
- # relative links
- while ($link=~s!(^|/)\.\./!!g) {
- $cwd=~s!/?[^/]+$!!;
+ if ($link=~s/^\/+//) {
+ # absolute links
+ $cwd="";
}
do {
$bestlink=htmlpage($bestlink);
}
if (! grep { $_ eq $bestlink } map { @{$_} } values %renderedfiles) {
+ return $linktext unless length $config{cgiurl};
return "<span><a href=\"".
cgiurl(do => "create", page => lc($link), from => $page).
"\">?</a>$linktext</span>"