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:
parent
dfaa9a89aa
commit
d2bceb62b1
@ -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']);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user