]> git.mxchange.org Git - friendica.git/commitdiff
Trim the rid
authorMichael <heluecht@pirati.ca>
Tue, 24 May 2022 17:39:02 +0000 (17:39 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 24 May 2022 17:39:02 +0000 (17:39 +0000)
src/Model/Photo.php

index 6537c41d1fd81158c75b1a011b7a3127f3f52910..d9e6f7cadebb8c54688cce3f531d15d5e025da54 100644 (file)
@@ -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);
        }
 
        /**