Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow subdomains in redirect and refactor validation tests #601

Merged
merged 1 commit into from
Dec 13, 2018

Conversation

joshcanhelp
Copy link
Contributor

Changes

Allow sibling subdomains and other ports of the same domain in the default redirect URL.

References

Internal support request.

Testing

  • This change adds unit test coverage
  • This change has been tested on WP 5.0.0

@joshcanhelp joshcanhelp added this to the 3.9.0 milestone Dec 12, 2018
@auth0 auth0 deleted a comment from codecov-io Dec 12, 2018
* Test that a subdomain of a main site is valid.
*/
public function testThatSubdomainIsValid() {
$input = [ 'default_login_redirection' => 'https://sub.sub.example.org' ];
Copy link
Member

Choose a reason for hiding this comment

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

was looking for a test like this 👍

Copy link
Member

@cocojoe cocojoe left a comment

Choose a reason for hiding this comment

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

👍

@joshcanhelp joshcanhelp merged commit bbce30c into master Dec 13, 2018
@joshcanhelp joshcanhelp deleted the add-sibling-subdomain-allowed branch December 13, 2018 15:52
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants