[pLog-svn] r6873 - plugins/branches/lifetype-1.2/moblog/class/moblog

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Tue Apr 28 12:27:35 EDT 2009


Author: jondaley
Date: 2009-04-28 12:27:35 -0400 (Tue, 28 Apr 2009)
New Revision: 6873

Modified:
   plugins/branches/lifetype-1.2/moblog/class/moblog/moblogrequest.class.php
Log:
uninitialized variables.  combined password checks - need to test that

Modified: plugins/branches/lifetype-1.2/moblog/class/moblog/moblogrequest.class.php
===================================================================
--- plugins/branches/lifetype-1.2/moblog/class/moblog/moblogrequest.class.php	2009-04-28 16:21:43 UTC (rev 6872)
+++ plugins/branches/lifetype-1.2/moblog/class/moblog/moblogrequest.class.php	2009-04-28 16:27:35 UTC (rev 6873)
@@ -107,11 +107,8 @@
                 $this->_user = trim($user[1]); 
             }       
             
-            // in case ppl are lazy and use pass instead of password
-            if (preg_match("/^pass:(.*)/mi", $body, $pass)) {
-                $this->_pass = trim($pass[1]);
-            } 
-            else if (preg_match("/^password:(.*)/mi", $body, $password)) {
+                // remove pass or password
+            if (preg_match("/^pass(?:word)?:(.*)/mi", $body, $password)) {
                 $this->_pass = trim($password[1]);
             }
 
@@ -128,14 +125,9 @@
             //We strip out all the lines we already used, and use what's left as the body
             $body = str_replace($title[0], "", $body);		
             $body = str_replace($user[0], "", $body);
-            $body = str_replace($pass[0], "", $body);
             $body = str_replace($password[0], "", $body);
-            $body = str_replace($cat[0], "", $body);
-            $body = str_replace($publish[0], "", $body);
-            $body = str_replace($category[0], "", $body);
             $body = str_replace($blog[0], "", $body );
             $body = str_replace($blogname[0], "", $body );            
-            $body = str_replace($host[0], "", $body );
             
             // strip off a standard .sig. Properly formed .sigs start with '-- ' on a new line.
             list($body, $sig) = explode("\n-- ", $body);



More information about the pLog-svn mailing list