Changeset 6294
- Timestamp:
- 06/18/08 03:36:09 (6 months ago)
- Files:
-
- 1 modified
-
trunk/plugins/CL_Moblog/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/CL_Moblog/index.php
r6228 r6294 141 141 142 142 function _getDecoratedContent( & $mail, $docid ) { 143 if( !empty($mail['text']) && strstr($mail['text'],'magicn.com') ) { 144 $mail['text'] = preg_replace( '@.*<BODY>(.*?)<style.*@smi', '$1', $mail['text']); 145 $mail['text'] = preg_replace( '@<IMG[^>]*?cid:[^>]*?>@smi', '', $mail['text']); 146 $mail['text'] = preg_replace( '@<BR>\s*<BR>\s*<BR>@smi', '<BR>', $mail['text']); 147 } 143 148 $text = "<h3 id=\"$docid\">$docid</h3>\r\n"; 144 149 $text .= empty($mail['subject']) ? '' : ("<p>".$mail['subject']."</p>\r\n"); 145 $text .= isset($mail['text']) ? (!stristr($mail['text'],'table')? "<p>{$mail['text']}</p>" : '') : '';150 $text .= "<p>{$mail['text']}</p>\r\n"; 146 151 return $text; 147 152 }
