NotifySmtpCheck.php
authoredward <edward@roojs.com>
Thu, 14 Jul 2016 05:26:42 +0000 (13:26 +0800)
committeredward <edward@roojs.com>
Thu, 14 Jul 2016 05:26:42 +0000 (13:26 +0800)
NotifySmtpCheck.php

index abb9908..cf87c78 100644 (file)
@@ -45,7 +45,7 @@ class Pman_Core_NotifySmtpCheck extends Pman
         
         $e = `$cmd`;
         
-        $helo = array_pop(explode(' ', $e));
+        $helo = substr(array_pop(explode(' ', $e)), 0, -1);
         
         print_R($helo);exit;