Commit 7d831257 authored by Yadd's avatar Yadd

Update #1121

parent 31ac4403
......@@ -129,7 +129,7 @@
.\" ========================================================================
.\"
.IX Title "llng-fastcgi-server 1"
.TH llng-fastcgi-server 1 "2016-12-29" "perl v5.24.1" "User Contributed Perl Documentation"
.TH llng-fastcgi-server 1 "2017-01-02" "perl v5.24.1" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
......
......@@ -115,13 +115,15 @@ Lemonldap::NG::Handler::SharedConf->init();
or die "Unable to get configuration";
foreach my $lltype ( keys %{ $conf->{nginxCustomHandlers} // {} } ) {
my $v = $conf->{nginxCustomHandlers}->{$lltype};
eval "use $v";
if ( my $err = $@ ) {
if ( $v =~ m#[/\\\.]# ) {
eval { require $v; };
if ($@) {
print STDERR "Unable to load $v, skipping:\n$err\n$@\n";
next;
}
}
else {
eval "use $v";
}
if ($@) {
print STDERR "Unable to load $v, skipping: $@\n";
next;
}
$builder{$lltype} = sub {
require $v;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment