Skip to content

Commit

Permalink
[Web] Fix incorrect session lifetime in sogo-auth.php
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddleSpl0it committed Feb 13, 2025
1 parent 3912341 commit aaa7e4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data/web/sogo-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@
// only check for admin-login on sogo GUI requests
elseif (isset($_SERVER['HTTP_X_ORIGINAL_URI']) && strcasecmp(substr($_SERVER['HTTP_X_ORIGINAL_URI'], 0, 9), "/SOGo/so/") === 0) {
// this is an nginx auth_request call, we check for existing sogo-sso session variables
session_start();
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/vars.inc.php';
if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/inc/vars.local.inc.php')) {
include_once $_SERVER['DOCUMENT_ROOT'] . '/inc/vars.local.inc.php';
}
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/sessions.inc.php';

// extract email address from "/SOGo/so/user@domain/xy"
$url_parts = explode("/", $_SERVER['HTTP_X_ORIGINAL_URI']);
$email_list = array(
Expand Down

0 comments on commit aaa7e4a

Please sign in to comment.