Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#4949 closed defect (bug) (fixed)

Strange Bug with apostrophes and the title of a webblog

Reported by: Stevie212 Owned by:
Priority: normal Milestone: 2.2.3
Component: General Version: 2.2.3
Severity: trivial Keywords: title, bug, apostrophe, backslash, admin
Cc: Focuses:

Description

It seems that when I add an apostrophe to the title like "WordPress's Blog" etc, the after result when saved, shows that WP automatically ads a backslash before the apostrophe in the title, which is NOT supposed to happen, its pretty easy to re-create the problem, and in this case it's WordPress 2.2.3.

This should be fixed right away, perhaps a 2.2.4 release. Or better yet, in 2.3.

I added a screenshot to show you what I mean, and if you don't beleive me, do it yourself and you'll see what I mean. And strangely this sort of happens in previous WordPresses.

Attachments (1)

bug_title.PNG​ (19.1 KB ) - added by Stevie212 19 years ago.
After saving the options to modify the title, if an apostrophe is used anywhere, WP automatically ads a backslash before the apostrophe, which is really annoying.

Download all attachments as: .zip

Change History (4)

@Stevie212
19 years ago

After saving the options to modify the title, if an apostrophe is used anywhere, WP automatically ads a backslash before the apostrophe, which is really annoying.

#1 @Stevie212
19 years ago

Also, this did not happen in WP 2.2.2 or 2.2.1 or even 2.2.

To note also, in previous versions, only when you make a fresh install of WP and use an apostrophe it will have the backslash, but it seems that in 2.2.3, if you modify it it does the same thing.

#2 @Stevie212
19 years ago

  • Priority high → normal
  • Severity normal → trivial

Also, this doesn't seem to happen in 2.3 Beta 2m but since the 2.2 branch is still of importance for now, this should be investigated and fixed.

#3 @ryan
19 years ago

  • Resolution → fixed
  • Status new → closed

(In [6083]) Fix option sanitization slashing. fixes #4949 for 2.2

Note: See TracTickets for help on using tickets.