my $feedonly=yesno($params{feedonly});
# Backwards compatibility
- if (defined $params{show} && $params{show} =~ m/^\d+$/) {
+ if (defined $params{show} && $params{show} =~ m/^-?\d+$/) {
$params{limit} = $params{show};
delete $params{show};
}
$v=$baseurl.$v; # anchor
}
elsif ($dv=~/^(?!\w+:)[^\/]/) {
- $v=$url.$v; # relative url
+ $v=URI->new_abs($v, $url)->canonical; # relative url
}
elsif ($dv=~/^\//) {
if (! defined $urltop) {