Adding spellchecker
This commit is contained in:
parent
fe664733cd
commit
9f232b4049
23 changed files with 2251 additions and 10 deletions
|
|
@ -56,7 +56,10 @@ sub handler {
|
|||
return Apache2::Const::DECLINED if ($r->uri =~ m/^$url/);
|
||||
}
|
||||
my $uploads = $config->get("uploadsURL");
|
||||
if ($r->uri =~ m/^$uploads/) {
|
||||
if ($r->uri =~ m!^uploads/dictionaries!) {
|
||||
# Do not allow web-access to personal dictionaries.
|
||||
$r->push_handlers(PerlAccessHandler => sub { return 401 } );
|
||||
} elsif($r->uri =~ m/^$uploads/) {
|
||||
$r->push_handlers(PerlAccessHandler => sub { return uploadsHandler($r, $configFile); } );
|
||||
} else {
|
||||
$r->push_handlers(PerlResponseHandler => sub { return contentHandler($r, $configFile); } );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue