Skip to content

Commit

Permalink
Merge pull request #43 from EvoWebFrance/main
Browse files Browse the repository at this point in the history
[FIX] Added alternate authorization header set by FastCGI
  • Loading branch information
zigazajc007 authored Mar 17, 2023
2 parents b92e9c0 + 34ae22c commit 747d9dc
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 747d9dc

Please sign in to comment.