Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

define('SAML_INTERNAL', 1);

// If we are behind a reverse proxy which terminates ssl and converts port to another, this line prevents bad redirections
if(isset($_SERVER['HTTP_X_FORWARDED_PORT'])) $_SERVER['SERVER_PORT'] = $_SERVER['HTTP_X_FORWARDED_PORT'];

try {
// In order to avoid session problems we first do the SAML issues and then
// we log in and register the attributes of user, but we need to read the value of the $CFG->dataroot.
Expand Down