From 0ff8ca8053af57321521dc41f46e40c8576632ab Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 24 May 2022 17:39:02 +0000 Subject: [PATCH] Trim the rid --- src/Model/Photo.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 6537c41d1f..d9e6f7cade 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -704,10 +704,7 @@ class Photo } $image_uri = substr($image_uri, strrpos($image_uri, '/') + 1); $image_uri = substr($image_uri, 0, strpos($image_uri, '-')); - if (!strlen($image_uri)) { - return ''; - } - return $image_uri; + return trim($image_uri); } /** -- 2.39.5