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

Oscar Renalias oscar at renalias.net
Wed May 11 20:42:12 GMT 2005


Sh*t, wrong commit message :(

This commit should fix the issues I'm having with a Nokia 9500, since  
it seems that it is sending the end-of-line characters as unicode  
0xE2 0x80 0xA9, which I have no clue what they mean :( I'm currently  
replacing them with a proper '\n' character, but I am not sure if  
this will affect other utf-8 languages such as chinese... Guess  
testing is needed.

Oscar

On 11 May 2005, at 23:28, oscar at devel.plogworld.net wrote:

> 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
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-svn
>
>




More information about the pLog-svn mailing list