[pLog-svn] r1989 - plugins/trunk/moblog/class/moblog
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Wed May 11 18:48:49 GMT 2005
Author: oscar
Date: 2005-05-11 18:48:49 +0000 (Wed, 11 May 2005)
New Revision: 1989
Modified:
plugins/trunk/moblog/class/moblog/moblogrequest.class.php
Log:
this should fix the issues I've been having with MMS messages sent from my phone...
Modified: plugins/trunk/moblog/class/moblog/moblogrequest.class.php
===================================================================
--- plugins/trunk/moblog/class/moblog/moblogrequest.class.php 2005-05-11 18:09:27 UTC (rev 1988)
+++ plugins/trunk/moblog/class/moblog/moblogrequest.class.php 2005-05-11 18:48:49 UTC (rev 1989)
@@ -148,6 +148,10 @@
MoblogLogger::log( "text/plain part - contents = ".$part->body );
$this->parseBody( $part->body );
}
+ elseif( strtolower($part->ctype_primary) == "multipart" ) {
+ // ignore these 'multipart' attachments, since they usually
+ // are html stuff that we don't care about...
+ }
else {
// whatever comes as a part, we will take it and treat it as if it was
// a normal resource
@@ -160,8 +164,9 @@
File::createDir( $tmpFolderName );
MoblogLogger::log( "Creating temp folder = $tmpFolderName" );
$fileName = stripslashes($part->ctype_parameters["name"]);
- if( $fileName == "" )
- $fileName = stripslashes($part->d_parameters["filename"]);
+ if( $fileName == "" )
+ $fileName = stripslashes($part->d_parameters["filename"]);
+
$fileName = str_replace( "\"", "", $fileName );
$fileName = str_replace( "'", "", $fileName );
$f = new File( $tmpFolderName."/".$fileName );
More information about the pLog-svn
mailing list