WordPress.org

Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#594 closed defect (bug) (fixed)

wp_specialchars doesn't sanitize single quotes due to typo

Reported by: bcrow Owned by: ryan
Milestone: Priority: normal
Severity: minor Version: 1.5
Component: General Keywords:
Focuses: Cc:

Description

The two string replaces for quotes in the function are meant to apply to double quotes first, and single quotes second. Because of a typo, double quotes are applied, but the expression to sanitize single quotes is the same original as the one for double quotes, and since double quotes were already sanitized, they aren't sanitized again, but single quotes still remain unaltered.

Attachments (1)

quotes.patch (422 bytes) - added by bcrow 17 years ago.

Download all attachments as: .zip

Change History (3)

#1 @bcrow
17 years ago

  • Patch set to No

#2 @ryan
17 years ago

  • fixed_in_version set to 1.5
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed

@bcrow
17 years ago

Note: See TracTickets for help on using tickets.