From: Hypolite Petovan Date: Sun, 29 Jan 2023 05:12:59 +0000 (-0500) Subject: Check $url variable for value before using it in Module\Photo::getPhotoById X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=48a7958ef9e9246dc75342030a1347fb22fe19d1;p=friendica.git Check $url variable for value before using it in Module\Photo::getPhotoById - Address https://github.com/friendica/friendica/issues/12488#issuecomment-1407342540 --- diff --git a/src/Module/Photo.php b/src/Module/Photo.php index bb7ee60297..7a952de407 100644 --- a/src/Module/Photo.php +++ b/src/Module/Photo.php @@ -351,7 +351,7 @@ class Photo extends BaseModule } // If it is a local link, we save resources by just redirecting to it. - if (Network::isLocalLink($url)) { + if (!empty($url) && Network::isLocalLink($url)) { System::externalRedirect($url); }