mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-11-04 11:12:27 +01:00 
			
		
		
		
	fixed a message-id rewrite bug
This commit is contained in:
		@@ -9,7 +9,7 @@ class ModelMailMail extends Model {
 | 
				
			|||||||
      if($to == "" || strlen($msg) < 30){ return $ok; }
 | 
					      if($to == "" || strlen($msg) < 30){ return $ok; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if(REWRITE_MESSAGE_ID == 1) {
 | 
					      if(REWRITE_MESSAGE_ID == 1) {
 | 
				
			||||||
         $msg = preg_replace("/Message-ID:([\s\w\W\r]+)\n/i", "Message-ID: <" . generate_random_string(25) . '@' . SITE_NAME . ">\n", $msg);
 | 
					         $msg = preg_replace("/Message-ID:([^\n]+)\n/i", "Message-ID: <" . generate_random_string(25) . '@' . SITE_NAME . ">\n", $msg);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $r = fsockopen($smtphost, $smtpport);
 | 
					      $r = fsockopen($smtphost, $smtpport);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user