Skip to content

Commit

Permalink
[FIX] Added alternate authorization header set by FastCGI
Browse files Browse the repository at this point in the history
  • Loading branch information
EvoWebFrance committed Mar 5, 2023
1 parent 130c45b commit 34ae22c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
exit();
}

if (isset($_SERVER["REDIRECT_HTTP_AUTHORIZATION"])) {
list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':' , base64_decode(substr($_SERVER['REDIRECT_HTTP_AUTHORIZATION'], 6)));
}

require_once 'Display.php';
require_once 'Database.php';
require_once 'Settings.php';
Expand Down

0 comments on commit 34ae22c

Please sign in to comment.