Some Fixes

This commit is contained in:
2020-09-02 13:57:41 +02:00
parent 8e33d226cd
commit 960859087a
3 changed files with 43 additions and 98 deletions

View File

@@ -24,6 +24,11 @@ class UpdatesApi {
$logManager->setLevel(LOGLEVEL);
$logManager->write("[Updater] Client Connected", LogRecordTypes::INFO);
if($this->validateHeader($_SERVER)){
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
die();
}
header('Content-type: text/plain; charset=utf8', true);
//Filtrování IP adress