Autologin: Do NOT sanitize username
I don't know the reason why this was done initially but a username must not be changed.
This commit is contained in:
parent
c42c7977be
commit
c09341d77e
|
@ -57,11 +57,7 @@ class AutoLoginBackend extends UserBackend
|
||||||
&& isset($_SERVER['AUTH_TYPE'])
|
&& isset($_SERVER['AUTH_TYPE'])
|
||||||
&& in_array($_SERVER['AUTH_TYPE'], array('Basic', 'Digest')) === true
|
&& in_array($_SERVER['AUTH_TYPE'], array('Basic', 'Digest')) === true
|
||||||
) {
|
) {
|
||||||
$username = filter_var(
|
$username = $_SERVER['PHP_AUTH_USER'];
|
||||||
$_SERVER['PHP_AUTH_USER'],
|
|
||||||
FILTER_SANITIZE_STRING,
|
|
||||||
FILTER_FLAG_ENCODE_HIGH|FILTER_FLAG_ENCODE_LOW
|
|
||||||
);
|
|
||||||
|
|
||||||
if ($username !== false) {
|
if ($username !== false) {
|
||||||
if ($this->stripUsernameRegexp !== null) {
|
if ($this->stripUsernameRegexp !== null) {
|
||||||
|
|
Loading…
Reference in New Issue