[pLog-svn] r1991 - plugins/trunk/moblog/class/moblog

oscar at devel.plogworld.net oscar at devel.plogworld.net
Wed May 11 20:28:15 GMT 2005


Author: oscar
Date: 2005-05-11 20:28:15 +0000 (Wed, 11 May 2005)
New Revision: 1991

Modified:
   plugins/trunk/moblog/class/moblog/moblogrequest.class.php
Log:
updated to the newest version of the PEAR::Mail_MIME library

Modified: plugins/trunk/moblog/class/moblog/moblogrequest.class.php
===================================================================
--- plugins/trunk/moblog/class/moblog/moblogrequest.class.php	2005-05-11 18:54:39 UTC (rev 1990)
+++ plugins/trunk/moblog/class/moblog/moblogrequest.class.php	2005-05-11 20:28:15 UTC (rev 1991)
@@ -61,10 +61,14 @@
          * that we need. This class is also capable of parsing attachments, mime
          * messages, etc.
          */ 
-        function parseBody( $body ) 
+        function parseBody( $body )
         {
             $body = strip_tags($body, "<a><b><i><u><s>");
+            //$body = strtr($body,"\xE2\x80\xA9","\n\n\n");
+            $body = str_replace("\xE2\x80\xA9","\n",$body);
             
+            MoblogLogger::log("body after filtering = $body");
+            
             //We try to find out where the line containing the title is at...
             /*if (preg_match("/^topic:(.*)/mi", $body, $title)) {
                 //And put the title var in the proper place




More information about the pLog-svn mailing list