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

UriConstraints don't apply default port if it differs from the current port #2714

Closed
bwaidelich opened this issue Feb 28, 2022 · 0 comments
Closed
Assignees
Labels

Comments

@bwaidelich
Copy link
Member

Description

When using UriConstraints::fromUri() (introduced with Flow 7.0) to create an instance and apply that to an URL with a different host/scheme, the port constraints of the target URL are ignored if they match the default port for the given scheme:

Steps to Reproduce

(string)UriConstraints::fromUri(new Uri('https://some-other-domain.tld'))
    ->applyTo(new Uri('https://some-domain.tld:8080'), false);

Expected behavior

'https://some-other-domain.tld'

Actual behavior

'https://some-other-domain.tld:8080'

Affected Versions

Flow: 7.0+

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

No branches or pull requests

1 participant