1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-01-20 10:52:15 +01:00

if the sync request is empty, drop it as early as possible.

This commit is contained in:
Klas Lindfors 2012-06-13 09:32:38 +02:00
parent dfaa9a89aa
commit d2bceb62b1

View File

@ -7,6 +7,11 @@ $apiKey = '';
header("content-type: text/plain"); header("content-type: text/plain");
if(empty($_SERVER['QUERY_STRING'])) {
sendResp(S_MISSING_PARAMETER, $apiKey);
exit;
}
$myLog = new Log('ykval-sync'); $myLog = new Log('ykval-sync');
$myLog->addField('ip', $_SERVER['REMOTE_ADDR']); $myLog->addField('ip', $_SERVER['REMOTE_ADDR']);