Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#2198 closed defect (bug) (fixed)

Upload browser chokes on apostrophes in titles

Reported by: kelson's profile Kelson Owned by:
Milestone: Priority: normal
Severity: major Version: 2.0
Component: Administration Keywords: upload image encoding
Focuses: Cc:


If you upload an image in WordPress 2.0 and use an apostrophe in the title, it results in broken Javascript that prevents the pop-up menu from appearing in the browse tab. This is because the JS code uses single quotes to avoid escaping double quotes in the HTML tags... but apparently doesn't bother to escape any single quotes that might appear in an attribute value (in this case ALT).

Workarounds: 1. Manually edit the apostrophe out of the database. 2. Disable JavaScript for all future posts until the image rolls off the first page of uploads.

Attachments (1)

quotes.diff (3.4 KB) - added by skeltoac 18 years ago.

Download all attachments as: .zip

Change History (4)

18 years ago

#1 @ryan
18 years ago

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

(In [3398]) Handle quotes in upload titles. fixes #2198

#2 @ryan
18 years ago

  • Milestone set to 2.0.1

#3 @(none)
17 years ago

  • Milestone 2.0.1 deleted

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.