Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#50588 closed defect (bug) (fixed)

Health Check REST-API error message disrupts leftside linkstructure when htpasswd is in place

Reported by: gisselfeldt Owned by: SergeyBiryukov
Priority: normal Milestone: 5.5
Component: Site Health Version: 5.4.2
Severity: minor Keywords:
Cc: Focuses:

Description

When having a site behind htpasswd and accessing the Tools > Site Health, the entire linkstructure in the leftside menu is disrupted and replaced with /error_docs/ instead of /wp-admin/.

Reference in the code is:

<!DOCTYPE HTML PUBLIC \"-\/\/IETF\/\/DTD HTML 2.0\/\/EN\">\n<HTML>\n<HEAD>\n<TITLE>401 Authorization Required<\/TITLE>\n<BASE href=\"\/error_docs\/\"><!--[if lte IE 6]><\/BASE>

which is applied to the REST-API-error message in the SiteHealth script.

Attachments (1)

50588.diff (594 bytes ) - added by siliconforks 6 years ago.
A simple 1-line fix.

Download all attachments as: .zip

Change History (3)

@siliconforks
6 years ago

A simple 1-line fix.

#1 @SergeyBiryukov
6 years ago

  • Milestone Awaiting Review5.5

#2 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 48608:

Site Health: Escape the displayed result of the request in REST API availability test.

Props siliconforks, gisselfeldt.
Fixes #50588.

Note: See TracTickets for help on using tickets.