From 2f1eff3cacfa27f7143f9c9511c1e42842c1074f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Thu, 28 Jun 2018 17:20:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=87=E6=BB=A4DMCA.com?= =?UTF-8?q?=E7=9A=84=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/third_party/htmlcompressor/controllers/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/third_party/htmlcompressor/controllers/index.php b/application/third_party/htmlcompressor/controllers/index.php index f48ed74a..4850a0f2 100644 --- a/application/third_party/htmlcompressor/controllers/index.php +++ b/application/third_party/htmlcompressor/controllers/index.php @@ -257,7 +257,7 @@ class Index extends CI_Controller if (!empty($image->originalsrc)) { $img_src = $image->originalsrc; } - if (strpos($img_src, 'facebook.com') !== false) {//facebook会添加一个跟踪代码,需要删除掉,否则获取图片尺寸会报错 + if (strpos($img_src, 'facebook.com') !== false || strpos($img_src, 'dmca.com') !== false) {//facebook dmca会添加一个跟踪代码,需要删除掉,否则获取图片尺寸会报错 $image->outertext = ''; continue; }