X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FProxy.php;h=aa0f66bbffbc274fae80eef7e9ebb6564c14e54f;hb=e1863951986ba5be173758324a00652bc5af870c;hp=67a0becb04e842103c7304accb1bb2b36600152b;hpb=6aa1dcfad371f34fea1f8e39b73de2cc3dd05784;p=friendica.git diff --git a/src/Util/Proxy.php b/src/Util/Proxy.php index 67a0becb04..aa0f66bbff 100644 --- a/src/Util/Proxy.php +++ b/src/Util/Proxy.php @@ -75,9 +75,9 @@ class Proxy * This function only performs the URL replacement on http URL and if the * provided URL isn't local * - * @param string $url The URL to proxyfy + * @param string $url The URL to proxify * @param string $size One of the Proxy::SIZE_* constants - * @return string The proxyfied URL or relative path + * @return string The proxified URL or relative path * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ public static function proxifyUrl(string $url, string $size = ''): string @@ -141,7 +141,7 @@ class Proxy { $html = str_replace(Strings::normaliseLink(DI::baseUrl()) . '/', DI::baseUrl() . '/', $html); - return preg_replace_callback('/(]*src *= *["\'])([^"\']+)(["\'][^>]*>)/siU', 'self::replaceUrl', $html); + return preg_replace_callback('/(]*src *= *["\'])([^"\']+)(["\'][^>]*>)/siU', [self::class, 'replaceUrl'], $html); } /**