Ticket #847 (defect)
Opened 3 months ago
Last modified 2 months ago
getBaseUrl sometimes failes.
Status: closed (fixed)
| Reported by: | sergeymorkovkin | Assigned to: | xue |
|---|---|---|---|
| Priority: | low | Milestone: | 3.1.3 |
| Component: | Prado Framework v3 | Version: | 3.1 |
| Severity: | minor | Keywords: | |
| Cc: |
THttpRequest::getBaseUrl() failes to return correct url since $_SERVER['HTTP_HOST'] includes server port. This way, instead of returning 'localhost:8080/...' it returns 'localhost:8080:8080/...'. Probably, this is an issue with my development environment changes (Nusphere PhpEd? 5.2.33) and Php 5.2.5.
Change History
05/04/2008 05:27:51 AM: Modified by sergeymorkovkin
05/20/2008 05:36:30 AM: Modified by tof06
- milestone set to 3.1.3.
05/20/2008 05:59:02 AM: Modified by tof06
- status changed from new to closed.
- resolution set to fixed.

Temporarily using a workaround:
if ($i = strpos($x = @$_SERVER['HTTP_HOST'], ':')) $_SERVER['HTTP_HOST'] = substr($x, 0, $i);