WordPress.org

Making WordPress.org

#3761 closed defect (fixed)

Wrong encoding for spaces in "Tickets by Component" dropdown

Reported by: SergeyBiryukov Owned by: dd32
Milestone: Priority: normal
Component: Trac Keywords:
Cc:

Description

  1. Go to https://make.wordpress.org/core/reports/.
  2. Under "Tickets by Component", select any component with spaces in the name, e.g. "Networks and Sites".
  3. You'll end up on https://core.trac.wordpress.org/component/Networks+and+Sites, which does not list any tickets.

The working URL is https://core.trac.wordpress.org/component/Networks%20and%20Sites, note %20 vs. +.

The code in question is in the trac-notifications plugin.

str_replace( ' ', '+', $component ) was added in [903].

Change History (1)

#1 @dd32
13 months ago

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

In 7664:

Trac Notifications: Properly encode Component names in urls.

H/t SergeyBiryukov.
Fixes #3761.

Note: See TracTickets for help on using tickets.