WordPress.org

Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#2198 closed defect (bug) (fixed)

Upload browser chokes on apostrophes in titles

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

Description

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 14 years ago.

Download all attachments as: .zip

Change History (4)

@skeltoac
14 years ago

#1 @ryan
14 years ago

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

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

#2 @ryan
14 years ago

  • Milestone set to 2.0.1

#3 @(none)
13 years ago

  • Milestone 2.0.1 deleted

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.