From 8d2b79817e58d35c86e465521632086b1148951a Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 12 Jan 2022 16:22:18 +0800 Subject: [PATCH] fix image checking --- Images.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Images.php b/Images.php index 327fa8c5..039ec024 100644 --- a/Images.php +++ b/Images.php @@ -468,10 +468,10 @@ class Pman_Core_Images extends Pman { $url = $dom; if (!is_string($url)) { - $url = $dom->getAttribute($src); + $url = $dom->getAttribute('src'); } $umatch = false; - if(!preg_match('#/(Images|Images/Thumb/[a-z0-9]+|Images/Download)/([0-9]+)/(.*)$#', $attr_url, $umatch)) { + if(!preg_match('#/(Images|Images/Thumb/[a-z0-9]+|Images/Download)/([0-9]+)/(.*)$#', $url, $umatch)) { return $url; } $id = $umatch[2]; -- 2.39.2