From 0c44a025772bd7ccc84c86876d4285a4d521cad2 Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 19 Feb 2019 17:19:59 +0800 Subject: [PATCH] Mailer.php Images.php --- Mailer.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Mailer.php b/Mailer.php index e1a1c230..7da09a83 100644 --- a/Mailer.php +++ b/Mailer.php @@ -393,8 +393,6 @@ class Pman_Core_Mailer { foreach ($imgs as $i=>$img) { $url = $img->getAttribute('src'); - print_r($url); - echo "\n"; if (preg_match('#^cid:#', $url)) { continue; } @@ -405,8 +403,6 @@ class Pman_Core_Mailer { if(!array_key_exists($url, $urls)){ $conv = $this->fetchImage($url); - print_r($conv); - echo "\n"; $urls[$url] = $conv; $this->images[$conv['contentid']] = $conv; } else { @@ -416,7 +412,7 @@ class Pman_Core_Mailer { $img->setAttribute('src', 'cid:' . $conv['contentid']); } - exit; + return $dom->saveHTML(); } @@ -591,8 +587,6 @@ class Pman_Core_Mailer { require_once 'HTTP/Request.php'; $real_url = str_replace(' ', '%20', $this->mapurl($url)); - print_R($real_url); - echo "\n"; $a = new HTTP_Request($real_url); $a->sendRequest(); $data = $a->getResponseBody(); @@ -604,8 +598,6 @@ class Pman_Core_Mailer { $mt = $a->getResponseHeader('Content-Type'); - print_r($mt); - echo "\n"; require_once 'File/MimeType.php'; $m = new File_MimeType(); -- 2.39.2