Make WordPress Core

Opened 4 years ago

Closed 4 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:


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 4 years ago.
Replace explode with str_getcsv

Download all attachments as: .zip

Change History (3)

4 years ago

Replace explode with str_getcsv

#1 @kurtpayne
4 years ago

Example ticket with tabs in the description:

#2 @kurtpayne
4 years ago

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

Fixed in changeset 561

Note: See TracTickets for help on using tickets.