X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FProxy.php;h=0de45b332518e433b58df1e0990f0242e257ab3a;hb=3564daf24dd66c6eeba2ef86722a7c80b076e3fa;hp=ccd00c6040fb8be879ba3e9fef2bdae6e88cf3de;hpb=df3b1be3b7437f3a36d6c1b6cf33cd2f0ad07388;p=friendica.git diff --git a/src/Module/Proxy.php b/src/Module/Proxy.php index ccd00c6040..0de45b3325 100644 --- a/src/Module/Proxy.php +++ b/src/Module/Proxy.php @@ -8,6 +8,7 @@ namespace Friendica\Module; use Friendica\App; use Friendica\BaseModule; use Friendica\Core\Config; +use Friendica\Core\L10n; use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\Model\Photo; @@ -133,6 +134,10 @@ class Proxy extends BaseModule $direct_cache = false; } + if (empty($_REQUEST['url'])) { + System::httpExit(400, ["title" => L10n::t('Bad Request.')]); + } + if (!$direct_cache) { $urlhash = 'pic:' . sha1($_REQUEST['url']);