From d2bceb62b1f665621d422aa6b073811112407772 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 13 Jun 2012 09:32:38 +0200 Subject: [PATCH] if the sync request is empty, drop it as early as possible. --- ykval-sync.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ykval-sync.php b/ykval-sync.php index 7f81983..12c81af 100644 --- a/ykval-sync.php +++ b/ykval-sync.php @@ -7,6 +7,11 @@ $apiKey = ''; header("content-type: text/plain"); +if(empty($_SERVER['QUERY_STRING'])) { + sendResp(S_MISSING_PARAMETER, $apiKey); + exit; +} + $myLog = new Log('ykval-sync'); $myLog->addField('ip', $_SERVER['REMOTE_ADDR']);