fix: The requested URL /uploads_macro was not found on this server

This commit is contained in:
JT Smith 2007-02-13 22:46:17 +00:00
parent 0748440cc6
commit 5892ad8721
2 changed files with 2 additions and 0 deletions

View file

@ -57,6 +57,7 @@ sub handler {
return Apache2::Const::DECLINED if ($r->uri =~ m/^$url/);
}
my $uploads = $config->get("uploadsURL");
$uploads .= "/" unless ($uploads =~ m{/$});
if ($r->uri =~ m!^$uploads/dictionaries!) {
# Do not allow web-access to personal dictionaries.
$r->push_handlers(PerlAccessHandler => sub { return 401 } );