[wp-trac] [WordPress Trac] #47980: New wp_validate_redirect() removes domain in some circumstances.

WordPress Trac noreply at wordpress.org
Thu Sep 5 15:24:22 UTC 2019


#47980: New wp_validate_redirect() removes domain in some circumstances.
---------------------------+-----------------------------
 Reporter:  rconde         |      Owner:  SergeyBiryukov
     Type:  defect (bug)   |     Status:  assigned
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  trunk
 Severity:  critical       |   Keywords:
  Focuses:  accessibility  |
---------------------------+-----------------------------
 Last change to `wp_validate_redirect()` (5.2.3) breaks the redirect in
 some cases. I've checked on other sites that runs linux and this doesn't
 happen. This is happening on XAMPP for Windows.

 In my case everything was working fine until the 5.2.3 update and now I
 get:

 https://wp-login.php/?loggedout=true
 https://wp-login.php/?checkemail=confirm
 https://wp-login.php/?checkemail=registered

 As you can see, the domain is missing.

 I've found the code causing this:

 https://github.com/WordPress/WordPress/commit/c86ee39ff4c1a79b93c967eb88522f5c09614a28

 Commenting this code everything works fine again.

 I've done a clean install of WordPress 5.2.3 to check if it's something
 that I've modified on my end but on the clean install it's still
 happening.

 So definitely a bug.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47980>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list