Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#43501 closed defect (bug) (fixed)

Debug backtrace doesn't normalize paths before replacement

Reported by: rarst's profile Rarst Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.1 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

wp_debug_backtrace_summary() tries to truncate admin and content paths from includes for brevity.

However it doesn't normalize paths before replacement, which is necessary for any kind of reliable operation cross–platform.

Attachments (1)

Normalized_paths_for_replacement_in_debug_backtrace_.patch (1.2 KB) - added by Rarst 6 years ago.

Download all attachments as: .zip

Change History (5)

#1 @Rarst
6 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
6 years ago

  • Milestone changed from Awaiting Review to 5.0

#3 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 42800:

General: In wp_debug_backtrace_summary(), normalize paths before replacement for better cross–platform compatibility.

Props Rarst.
Fixes #43501.

#4 @johnbillion
5 years ago

  • Milestone changed from 5.0 to 5.1
  • Version trunk deleted
Note: See TracTickets for help on using tickets.