#013235: ezcUrlTools::getCurrentUrl() duplicates port number

Description:

The convenience method ezcUrlTools::getCurrentUrl() duplicates the port number if the port number differs from 80.

I'm developing on my local machine and the virtual host for the site listens on port 8075. The complete url is http://discovery:8075/url

The result of the convenience method is "http://discovery:8075:8075/url". This is caused by the usage of HTTP_HOST in the $_SERVER array. HTTP_HOST is the representation of the Host header of the HTTP protocol which includes the port number. The port number is then added anyway (!=80) without checking if there is already a port in the host variable.


Environment:

Operating System: Win XP SP3
PHP Version: 5.2.5
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Fixed in SVN rev. 8449. It will be available in Url 1.2.2.

#257146 by Alexandru Stanoi on June 24th, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Url
Affects Unknown
Fix Version -
Reporter Hans Melis
Responsible Alexandru Stanoi
Status 0 Closed
Resolution Fixed
Created June 23rd, 2008
Updated June 24th, 2008
Resolved June 24th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels