trim whitespace from LOGIN_NAME - otherwise access is denied for the user's lists
This commit is contained in:
parent
253b80f338
commit
13a128cf8d
|
@ -292,6 +292,11 @@ unless (defined($MAIL_ADDRESS_PREFIX)) {
|
||||||
|
|
||||||
# get the current login name advertised to the webserver (if it is defined)
|
# get the current login name advertised to the webserver (if it is defined)
|
||||||
$LOGIN_NAME = lc($ENV{'REMOTE_USER'});
|
$LOGIN_NAME = lc($ENV{'REMOTE_USER'});
|
||||||
|
# Remove leading and trailing whitespace (they are ignored by http-auth).
|
||||||
|
# Otherwise the webauth check does not work properly.
|
||||||
|
$LOGIN_NAME =~ s/^\s+//;
|
||||||
|
$LOGIN_NAME =~ s/\s+$//;
|
||||||
|
|
||||||
|
|
||||||
# check if the POSIX module is available
|
# check if the POSIX module is available
|
||||||
$posix_enabled = &safely_import_module("POSIX");
|
$posix_enabled = &safely_import_module("POSIX");
|
||||||
|
|
Loading…
Reference in a new issue