Open khavishbhundoo opened 7 years ago
Also when using a portnumber, it isn't taken into account at the rel2abs function. E.g: https://mySite.com:2222/Hello becomes https://mySite.com/Hello
should be something like
$abs = $host;
if ($port != '') {
$abs .= ":$port";
}
$abs .= "/$path/$rel";
The function used to convert relative url into absolute ones fails several test cases.
I suggest using phpuri instead.The test page can be downloaded here