Still there had been notices - must have a good camouflage

This commit is contained in:
Michael 2018-08-31 05:08:22 +00:00
parent b028de3aa3
commit 380eeaab88
4 changed files with 12 additions and 4 deletions

View file

@ -133,6 +133,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']);