Changeset 1496
- Timestamp:
- 06/21/06 11:19:10 (2 years ago)
- Files:
-
- trunk/lib/request/sfWebRequest.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/request/sfWebRequest.class.php
r1415 r1496 327 327 $protocol = $this->isSecure() ? 'https' : 'http'; 328 328 329 return $protocol.'://'.$ pathArray['HTTP_HOST'].$pathArray['REQUEST_URI'];329 return $protocol.'://'.$this->getHost().$pathArray['REQUEST_URI']; 330 330 } 331 331 … … 526 526 $pathArray = $this->getPathInfoArray(); 527 527 528 return isset($pathArray['HTTP_ HOST']) ? $pathArray['HTTP_HOST'] : '';528 return isset($pathArray['HTTP_X_FORWARDED_HOST']) ? $pathArray['HTTP_X_FORWARDED_HOST'] : (isset($pathArray['HTTP_HOST']) ? $pathArray['HTTP_HOST'] : ''); 529 529 } 530 530