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; }