Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 22 Jun 2011 at 9:02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant