WordPress.org

Make WordPress Core

Opened 5 months ago

Closed 5 months ago

#47995 closed defect (bug) (duplicate)

WP 5.2.3 on W10 Logout Not returning to Login Page

Reported by: tezzerfx Owned by:
Milestone: Priority: normal
Severity: major Version: 5.2.3
Component: General Keywords:
Focuses: Cc:
PR Number:

Description

On a windows system the “dirname” can result in “\” a backwards slash.

In wp-includes/pluggable.php the code on line 1404 :

$location = ‘/’ . ltrim( $path . ‘/’, ‘/’ ) . $location;

dose not take this in to account, and causes the logout to hang until a timeout occurs.

IMHO it should be as follows:

$location = ‘/’ . ltrim( $path . ‘/’, ‘/\\’ ) . $location;

PLEASE FIX…

Change History (1)

#1 @peterwilsoncc
5 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @tezzerfx and welcome to trac.

We're already tracking this issue in #47980 and a fix has been scheduled for the 5.2.4 release of WordPress. I'm going to close this ticket as a duplicate to keep the conversation in one place.

Thanks for your report.

Note: See TracTickets for help on using tickets.