Merge branch 'stops-redirect-on-login' into 'master'
stops redirect on login page See merge request saburly/wiaas/new-wiaas!7
This commit was merged in pull request #7.
This commit is contained in:
@@ -23,6 +23,16 @@ if (file_exists($env_config)) {
|
||||
require_once $env_config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stops redirect loop on login page
|
||||
*/
|
||||
define('FORCE_SSL_ADMIN', true);
|
||||
// in some setups HTTP_X_FORWARDED_PROTO might contain
|
||||
// a comma-separated list e.g. http,https
|
||||
// so check for https existence
|
||||
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
|
||||
$_SERVER['HTTPS']='on';
|
||||
|
||||
/**
|
||||
* URLs
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user