File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 2525use Exception ;
2626
2727/**
28- <<<<<<< HEAD
29- * Utils of PHP Toolkit
30- =======
3128 * Utils of SAML PHP Toolkit
32- >>>>>>> f338e1e... Remove references to onelogin support.
3329 *
3430 * Defines several often used methods
3531 */
@@ -515,7 +511,7 @@ protected static function getRawHost()
515511 if (self ::$ _host ) {
516512 $ currentHost = self ::$ _host ;
517513 } elseif (self ::getProxyVars () && array_key_exists ('HTTP_X_FORWARDED_HOST ' , $ _SERVER )) {
518- $ currentHost = $ _SERVER ['HTTP_X_FORWARDED_HOST ' ];
514+ $ currentHost = explode ( ' , ' , $ _SERVER ['HTTP_X_FORWARDED_HOST ' ])[ 0 ];
519515 } elseif (array_key_exists ('HTTP_HOST ' , $ _SERVER )) {
520516 $ currentHost = $ _SERVER ['HTTP_HOST ' ];
521517 } elseif (array_key_exists ('SERVER_NAME ' , $ _SERVER )) {
You can’t perform that action at this time.
0 commit comments