X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FProxy.php;h=9309887409eb423e06675f5c8ca871411f23bd83;hb=cc8a6c85ae939c0fc9258d7a11276bc7c2e59bc0;hp=be70077f15d98b7eb4d14d40a7c71db193a2f4d3;hpb=53e9203d37ee0c1a2afed0faf295e3c622ac2e17;p=friendica.git diff --git a/src/Util/Proxy.php b/src/Util/Proxy.php index be70077f15..9309887409 100644 --- a/src/Util/Proxy.php +++ b/src/Util/Proxy.php @@ -2,11 +2,9 @@ namespace Friendica\Util; -use Friendica\BaseModule; use Friendica\BaseObject; use Friendica\Core\Config; use Friendica\Core\System; -use Friendica\Util\Strings; /** * @brief Proxy utilities class @@ -60,6 +58,7 @@ class Proxy * @param string $size One of the ProxyUtils::SIZE_* constants * * @return string The proxyfied URL or relative path + * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ public static function proxifyUrl($url, $writemode = false, $size = '') { @@ -138,6 +137,7 @@ class Proxy * @param string $html Un-proxified HTML code * * @return string Proxified HTML code + * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ public static function proxifyHtml($html) { @@ -151,6 +151,7 @@ class Proxy * * @param string $url * @return boolean + * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ private static function isLocalImage($url) { @@ -190,6 +191,7 @@ class Proxy * * @param array $matches Matches from preg_replace_callback() * @return string Proxified HTML image tag + * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ private static function replaceUrl(array $matches) {