- Timestamp:
- 05/03/2016 02:10:07 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/trac/comment-handler.php
r3071 r3072 30 30 function process_message() { 31 31 $lines = array_map( 'rtrim', $this->lines ); 32 $base64 = false; 32 33 33 34 // Trim off headers. … … 49 50 } 50 51 51 if ( ! empty( $base64 )) {52 if ( $base64 ) { 52 53 $lines = explode( "\n", base64_decode( implode( "\n", $lines ) ) ); 53 54 } 54 55 55 // Remove empty line between headers and body. 56 array_shift( $lines ); 56 // Remove empty line between headers and body if not base64. 57 if ( ! $base64 ) { 58 array_shift( $lines ); 59 } 57 60 58 61 $title = '';
Note: See TracChangeset
for help on using the changeset viewer.