Ticket #2198 (closed defect (bug): fixed)

Opened 6 years ago

Last modified 5 years ago

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

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

Change History

comment:1   ryan6 years ago

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

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

comment:2   ryan6 years ago

  • Milestone set to 2.0.1
  • Milestone 2.0.1 deleted

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.