summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2022-07-08 17:44:06 +0300
committerfox <[email protected]>2022-07-08 17:44:06 +0300
commitf8fe5e02f18ce3d61544865cc8eb22df18be6bf1 (patch)
treeb4678754967e50e7d6274e4aab5dfa0ff6221e0e
parentd9ae4204ce15f5abb47c1352ce3e1611b90010d1 (diff)
parent7e5453b3aac94fb0fb1771b4afa8af8d6626e960 (diff)
Merge pull request 'fix: lower-case remote usernames before validation' (#75) from disconn3ct/tt-rss:fix/auth-remote into master
Reviewed-on: https://dev.tt-rss.org/fox/tt-rss/pulls/75
-rw-r--r--plugins/auth_remote/init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php
index 3203d41fe..2fb45fdef 100644
--- a/plugins/auth_remote/init.php
+++ b/plugins/auth_remote/init.php
@@ -45,7 +45,7 @@ class Auth_Remote extends Auth_Base {
foreach (["REMOTE_USER", "HTTP_REMOTE_USER", "REDIRECT_REMOTE_USER", "PHP_AUTH_USER"] as $hdr) {
if (!empty($_SERVER[$hdr])) {
- $try_login = $_SERVER[$hdr];
+ $try_login = strtolower($_SERVER[$hdr]);
break;
}
}