|  | @@ 559-564 (lines=6) @@ | 
                                                            
                                    | 556 |  | 		} | 
                                                            
                                    | 557 |  |  | 
                                                            
                                    | 558 |  | 		if (isset($this->server['HTTP_X_FORWARDED_PROTO'])) { | 
                                                            
                                    | 559 |  | 			if (\strpos($this->server['HTTP_X_FORWARDED_PROTO'], ',') !== false) { | 
                                                            
                                    | 560 |  | 				$parts = \explode(',', $this->server['HTTP_X_FORWARDED_PROTO']); | 
                                                            
                                    | 561 |  | 				$proto = \strtolower(\trim($parts[0])); | 
                                                            
                                    | 562 |  | 			} else { | 
                                                            
                                    | 563 |  | 				$proto = \strtolower($this->server['HTTP_X_FORWARDED_PROTO']); | 
                                                            
                                    | 564 |  | 			} | 
                                                            
                                    | 565 |  |  | 
                                                            
                                    | 566 |  | 			// Verify that the protocol is always HTTP or HTTPS | 
                                                            
                                    | 567 |  | 			// default to http if an invalid value is provided | 
                                                                                
                                |  | @@ 743-748 (lines=6) @@ | 
                                                            
                                    | 740 |  | 	public function getInsecureServerHost() { | 
                                                            
                                    | 741 |  | 		$host = 'localhost'; | 
                                                            
                                    | 742 |  | 		if (isset($this->server['HTTP_X_FORWARDED_HOST'])) { | 
                                                            
                                    | 743 |  | 			if (\strpos($this->server['HTTP_X_FORWARDED_HOST'], ',') !== false) { | 
                                                            
                                    | 744 |  | 				$parts = \explode(',', $this->server['HTTP_X_FORWARDED_HOST']); | 
                                                            
                                    | 745 |  | 				$host = \trim(\current($parts)); | 
                                                            
                                    | 746 |  | 			} else { | 
                                                            
                                    | 747 |  | 				$host = $this->server['HTTP_X_FORWARDED_HOST']; | 
                                                            
                                    | 748 |  | 			} | 
                                                            
                                    | 749 |  | 		} else { | 
                                                            
                                    | 750 |  | 			if (isset($this->server['HTTP_HOST'])) { | 
                                                            
                                    | 751 |  | 				$host = $this->server['HTTP_HOST']; |