Case insiensiteve look for name
authorAlan <alan@roojs.com>
Wed, 26 Jul 2023 03:09:30 +0000 (11:09 +0800)
committerAlan <alan@roojs.com>
Wed, 26 Jul 2023 03:09:30 +0000 (11:09 +0800)
DataObjects/Images.php

index 6401243..7790205 100644 (file)
@@ -609,7 +609,7 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
             $id = $matches[1];
         } else if (preg_match('#Images/([0-9]+)/#', $url, $matches)) {
             $id = $matches[1];
-        } else if (preg_match('#images[^/]+/([0-9]+)/#', $url, $matches)) {
+        } else if (preg_match('#images[^/]+/([0-9]+)/#i', $url, $matches)) {
             // supports images.xxxxx.com/{number}/name...
             $id = $matches[1];
         }