WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#2198 closed defect (bug) (fixed)

Upload browser chokes on apostrophes in titles

Reported by: Kelson Owned by: anonymous
Priority: normal Milestone:
Component: Administration Version: 2.0
Severity: major Keywords: upload image encoding
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 7 years ago.

Download all attachments as: .zip

Change History (4)

skeltoac7 years ago

comment:1 ryan7 years ago

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

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

comment:2 ryan7 years ago

  • Milestone set to 2.0.1

comment:3 anonymous7 years ago

  • Milestone 2.0.1 deleted

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.