Making WordPress.org


Ignore:
Timestamp:
04/15/2018 12:34:44 PM (8 years ago)
Author:
ocean90
Message:

Slack/Trac: Improve detection of Trac email footer.

Some Trac installs like BuddyPress have an extra space after the separator which breaks parsing the mail.

See #3526.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/trac/comment-handler.php

    r7084 r7111  
    153153
    154154                // Remove Trac email footer.
    155                 while ( $lines && end( $lines ) !== '--' ) {
     155                while ( $lines && trim( end( $lines ) ) !== '--' ) {
    156156                        array_pop( $lines );
    157157                }
Note: See TracChangeset for help on using the changeset viewer.