Skip to content

Commit

Permalink
fix tiqr client version log message
Browse files Browse the repository at this point in the history
  • Loading branch information
joostd committed Jul 23, 2015
1 parent 9a3d1aa commit e315a61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/tiqr/tiqr.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ function register( $enrollmentSecret, $secret, $notificationType, $notificationA
logger()->addInfo("sent metadata");
break;
case "POST":
logger()->addDebug(sprintf("Received POST request from tiqr client version %s", $_SERVER['HTTP_X_TIQR_PROTOCOL_VERSION']));
$version = array_key_exists('HTTP_X_TIQR_PROTOCOL_VERSION', $_SERVER) ? $_SERVER['HTTP_X_TIQR_PROTOCOL_VERSION'] : "1";
logger()->addDebug(sprintf("Received POST request from tiqr client version %s", $version));
$operation = preg_replace("/[^a-z]+/", "", $_POST['operation']);
logger()->addInfo(sprintf("received operation '%s'", $operation));
$notificationType = preg_replace("/[^a-zA-Z0-9]+/", "", $_POST['notificationType']);
Expand Down

0 comments on commit e315a61

Please sign in to comment.