to_attr prurl mid_href fmt_ts ts2str utf8_maybe/;
use POSIX qw(strftime);
my $enc_ascii = find_encoding('us-ascii');
-use File::Spec;
+use File::Spec::Functions qw(abs2rel);
# safe-ish acceptable filename pattern for portability
our $FN = '[a-zA-Z0-9][a-zA-Z0-9_\-\.]+[a-zA-Z0-9]'; # needs \z anchor
} elsif ($dslash < 0 && substr($u, 0, 1) ne '/' &&
substr(my $path = $env->{PATH_INFO}, 0, 1) eq '/') {
# this won't touch the FS at all:
- File::Spec->abs2rel("/$u", $path);
+ abs2rel "/$u", $path;
} else {
$u;
}