Add Handler version in Apache Server Signature
This commit is contained in:
parent
6147019e90
commit
181ff5b309
|
@ -184,6 +184,8 @@ status = 0
|
|||
# Set useRedirectOnForbidden to 1 if you want to use REDIRECT and not FORBIDDEN
|
||||
# when a user is not allowed by Handler
|
||||
;useRedirectOnForbidden = 1
|
||||
# Hide LemonLDAP::NG Handler in Apache Server Signature
|
||||
;hideSignature = 1
|
||||
|
||||
# Zimbra Handler parameters
|
||||
;zimbraPreAuthKey = XXXX
|
||||
|
|
|
@ -352,12 +352,8 @@ sub statusProcess {
|
|||
sub safe {
|
||||
my $class = shift;
|
||||
|
||||
#no strict 'refs';
|
||||
#return ${"$class\::safe"} if (${"$class\::safe"});
|
||||
return $safe if ($safe);
|
||||
|
||||
#$class->lmLog( "Compiling safe jail for $class", 'debug' );
|
||||
#my $safe = new Safe;
|
||||
$safe = new Safe;
|
||||
my @t = $customFunctions ? split( /\s+/, $customFunctions ) : ();
|
||||
foreach (@t) {
|
||||
|
@ -383,7 +379,6 @@ sub safe {
|
|||
$safe->share( '&encode_base64', '$datas', '&lmSetHeaderIn',
|
||||
'$apacheRequest', '&portal', @t );
|
||||
|
||||
#return ${"$class\::safe"} = $safe;
|
||||
return $safe;
|
||||
}
|
||||
|
||||
|
@ -447,7 +442,7 @@ sub childInit {
|
|||
$s->push_handlers(
|
||||
PerlPostConfigHandler => sub {
|
||||
my ( $c, $l, $t, $s ) = splice @_;
|
||||
$s->add_version_component('Lemonldap::NG::Handler');
|
||||
$s->add_version_component('Lemonldap::NG::Handler/'.$VERSION);
|
||||
}
|
||||
) unless ( $args->{hideSignature} );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user