Skip to content

Non-standard port numbers cause proxified links to have the port number doubled thus breaking links. #59

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Run WebAnywhere on a non-standard (not 80, 443) port (i.e. 8080)

What is the expected output? What do you see instead?
When loading a page, all the links will have: hostname:port:port instead of 
hostname:port
i.e. localhost:8080 will become localhost:8080:8080 breaking all links.
The port number should only appear once and links should work when clicked.

What version of the product are you using? On what operating system?
OS X, latest branch

Please provide any additional information below.
Suggested Fix:
This can be fixed by updating the reference to $_http_host in wawp.php (line 
104) and index.php (line 111).

Instead of using $_http_host as is, search and replace any port numbers as 
follows:
(strpos($_http_host, ':') ? strstr($_http_host, ':', true) : $_http_host)


Original issue reported on code.google.com by smur...@gmail.com on 22 Jun 2011 at 9:02

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions