mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-25 10:43:23 +00:00
match EAS and SOGO/dav case insensitive
This commit is contained in:
1 parent
a110378000
commit
fa80d66d6c
1 file changed
+2
-2
@@ -57,8 +57,8 @@ elseif (isset($_GET['login'])) {
|
|||||||
}
|
}
|
||||||
// do not check for admin-login / sogo-sso for EAS and DAV requests, SOGo can check auth itself if no authorization header is set
|
// do not check for admin-login / sogo-sso for EAS and DAV requests, SOGo can check auth itself if no authorization header is set
|
||||||
elseif (
|
elseif (
|
||||||
substr($_SERVER['HTTP_X_ORIGINAL_URI'], 0, 28) !== "/Microsoft-Server-ActiveSync" &&
|
strcasecmp(substr($_SERVER['HTTP_X_ORIGINAL_URI'], 0, 28), "/Microsoft-Server-ActiveSync") == 0 &&
|
||||||
substr($_SERVER['HTTP_X_ORIGINAL_URI'], 0, 9) !== "/SOGo/dav"
|
strcasecmp(substr($_SERVER['HTTP_X_ORIGINAL_URI'], 0, 9), "/SOGo/dav") == 0
|
||||||
) {
|
) {
|
||||||
// this is an nginx auth_request call, we check for existing sogo-sso session variables
|
// this is an nginx auth_request call, we check for existing sogo-sso session variables
|
||||||
session_start();
|
session_start();
|
||||||
|
|||||||
Reference in new issue
Block a user