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

Refactor.

- single quotes.

- unset after use.

- don't wrap.
This commit is contained in:
Jean Paul Galea 2015-07-21 21:05:16 +00:00
parent 847f288cf5
commit 262671f50b

View File

@ -41,6 +41,7 @@ $https = (array_key_exists('HTTPS', $_SERVER) === TRUE
$myLog = new Log('ykval-verify');
$myLog->addField('ip', $ipaddr);
// FIXME clean
$query_string = '';
if ($_POST)
{
@ -55,9 +56,9 @@ else
{
$query_string = 'Request: ' . $_SERVER['QUERY_STRING'];
}
$myLog->log(LOG_INFO, $query_string . ' (at ' . date('c') . ' ' . microtime() . ') HTTP' . ($https ? 'S' : ''));
unset($query_string);
$myLog->log(LOG_INFO, $query_string .
" (at " . date("c") . " " . microtime() . ") HTTP" . ($https ? "S" : ""));
/* Detect protocol version */
if (preg_match('/\/wsapi\/([0-9]+)\.([0-9]+)\//', $_SERVER['REQUEST_URI'], $out))