WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#26 closed defect (fixed)

isTracTicketClosed fails when description contains tabs

Reported by: kurtpayne Owned by: kurtpayne
Milestone: Legacy - Improve Framework Priority: minor
Component: Test Framework Keywords:
Cc:

Description

Tickets that contain tabs in the description (e.g. code samples) cause problems in isTracTicketClosed(). Exploding the line on a tab doesn't obey column enclosures, so the status column gets moved to the right and the ticket status is lost.

The fix is to use str_getcsv and a compatibility function for < php 5.3.0.

Attachments (1)

26.patch (946 bytes) - added by kurtpayne 2 years ago.
Replace explode with str_getcsv

Download all attachments as: .zip

Change History (3)

kurtpayne2 years ago

Replace explode with str_getcsv

comment:1 kurtpayne2 years ago

Example ticket with tabs in the description:
http://core.trac.wordpress.org/ticket/16456?format=tab

comment:2 kurtpayne2 years ago

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

Fixed in changeset 561

Note: See TracTickets for help on using tickets.