Skip to content

Conversation

@f3l1x
Copy link
Member

@f3l1x f3l1x commented Oct 12, 2021

@dg
Copy link
Member

dg commented Oct 12, 2021

This ip2long($host) needs to be called with host, the authority includes the port.

$host = $refUrl->getHost();
$host = $refUrl->getAuthority();
$parts = ip2long($host)
? [$host]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, calling $refUrl->getAuthority() this should be here

@f3l1x
Copy link
Member Author

f3l1x commented Oct 13, 2021

@dg Yep, I know. It's PoC if it's working like that. Should I continue on this and update ip2long?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Route constructUrl incorrectly builds a URL on a non-standard port

4 participants