Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#5202 closed defect (bug) (fixed)

Single quote error in tags

Reported by: devil1591's profile devil1591 Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.5
Component: General Keywords:
Focuses: Cc:

Description

Tested on svn 6250.
If you put a single quote in a tag, it will display a backslash before the quote.

ex : "maladie d'amour" will display "maladie d\'amour"

Change History (4)

#1 @Viper007Bond
18 years ago

  • Milestone changed from 2.4 to 2.3.1

Needs more stripslashes().

#2 @ryanLead Tester
18 years ago

  • Milestone changed from 2.3.1 to 2.4
  • Version changed from 2.3 to 2.4

I can't reproduce this on the 2.3 branch, only on trunk.

I noticed that 2.4 wasn't selectable as a version in trac. I added it so that we can mark these 2.4 specific bug appropriately.

#3 @ryanLead Tester
18 years ago

I think wp_insert_term() needs to strip before calling insert().

#4 @markjaquithLead Developer
18 years ago

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

(In [6267]) Stripslashes tag names to prevent double slashing in wp_insert_term(). fixes #5202

Note: See TracTickets for help on using tickets.