Make WordPress Core

Opened 4 weeks ago

Closed 4 weeks ago

#63988 closed defect (bug) (fixed)

Regex special chars should be escaped

Reported by: johnbillion's profile johnbillion Owned by: johnbillion's profile johnbillion
Milestone: 6.9 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch has-unit-tests commit
Focuses: Cc:

Description

Previously for oembed providers: #38187.

Some unescaped regex special characters have slipped in to regular expressions which makes them greedier than they should be.

Change History (3)

This ticket was mentioned in PR #9917 on WordPress/wordpress-develop by @johnbillion.


4 weeks ago
#1

  • Keywords has-patch has-unit-tests added; needs-patch removed

Trac ticket: Core-63988

#2 @mukesh27
4 weeks ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 6.9

#3 @johnbillion
4 weeks ago

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

In 60783:

General: Escape periods in regular expressions where the character is intended to match only a literal period.

Props westonruter, mukesh27, johnbillion

Fixes #63988

Note: See TracTickets for help on using tickets.