X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FProxy.php;h=16f635e3a04b402e1ac8255f8ced3a2a72589db5;hb=3b6c40e2e6ad59f09daef08cf09366c844edd23a;hp=16e3e221ff5c0da7dab239eb27e089b3aa80bb05;hpb=844727dc19e584b807cd1831a8268544f7230965;p=friendica.git diff --git a/src/Util/Proxy.php b/src/Util/Proxy.php index 16e3e221ff..16f635e3a0 100644 --- a/src/Util/Proxy.php +++ b/src/Util/Proxy.php @@ -1,6 +1,6 @@ get('system', 'proxify_content')) { + return $url; + } + // Trim URL first $url = trim($url); @@ -95,11 +94,6 @@ class Proxy return $url; } - // Is the proxy disabled? - if (DI::config()->get('system', 'proxy_disabled')) { - return $url; - } - // Image URL may have encoded ampersands for display which aren't desirable for proxy $url = html_entity_decode($url, ENT_NOQUOTES, 'utf-8'); @@ -122,6 +116,8 @@ class Proxy $size = ':' . $size; } + Logger::info('Created proxy link', ['url' => $url, 'callstack' => System::callstack(20)]); + // Too long files aren't supported by Apache if (strlen($proxypath) > 250) { return DI::baseUrl() . '/proxy/' . $shortpath . '?url=' . urlencode($url);