X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FModule%2FProxy.php;h=75a1142af6221331ce4715d3a87c7f8988a7c44f;hb=a11206dbcd662a73d1c8200f2bef5287533cdbe6;hp=54870abe055469e20e715b269281644d539b5de3;hpb=326a7d22ba59d84cc00f7ccfbcd5a56596cbbc6d;p=friendica.git diff --git a/src/Module/Proxy.php b/src/Module/Proxy.php index 54870abe05..75a1142af6 100644 --- a/src/Module/Proxy.php +++ b/src/Module/Proxy.php @@ -12,7 +12,6 @@ use Friendica\Model\Photo; use Friendica\Object\Image; use Friendica\Util\HTTPSignature; use Friendica\Util\Proxy as ProxyUtils; -use Friendica\Core\Logger; /** * @brief Module Proxy @@ -71,7 +70,7 @@ class Proxy extends BaseModule $request = self::getRequestInfo(); if (empty($request['url'])) { - System::httpExit(400, ['title' => L10n::t('Bad Request.')]); + throw new \Friendica\Network\HTTPException\BadRequestException(); } // Webserver already tried direct cache... @@ -159,6 +158,7 @@ class Proxy extends BaseModule $sizetype = ''; // Look for filename in the arguments + // @TODO: Replace with parameter from router if (($a->argc > 1) && !isset($_REQUEST['url'])) { if (isset($a->argv[3])) { $url = $a->argv[3]; @@ -169,6 +169,7 @@ class Proxy extends BaseModule } /// @TODO: Why? And what about $url in this case? + /// @TODO: Replace with parameter from router if (isset($a->argv[3]) && ($a->argv[3] == 'thumb')) { $size = 200; }