diff --git a/application/third_party/htmlcompressor/controllers/index_gm.php b/application/third_party/htmlcompressor/controllers/index_gm.php index 51de9d93..0a987645 100644 --- a/application/third_party/htmlcompressor/controllers/index_gm.php +++ b/application/third_party/htmlcompressor/controllers/index_gm.php @@ -251,7 +251,7 @@ class Index_gm extends CI_Controller //请求图片尺寸 $image_sizes = array(); foreach ($request_size as $host => $path) { - $parse_url = "https://{$host}/imagesize.php?photo=" . implode(',', $path); + $parse_url = "https://{$host}/imagesize.php?photo=" . urlencode(implode(',', $path)); $size_data = GET_HTTP($parse_url); if (!empty($size_data)) { $size_data = json_decode($size_data);