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

Support YubiKey OTPs filtered through a US Dvorak keyboard layout.

This commit is contained in:
Simon Josefsson 2010-09-21 08:13:36 +00:00
parent 192b3c77a2
commit 016313a1e3
3 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,4 @@
VERSION = 2.7
VERSION = 2.8
PACKAGE = yubikey-val
CODE = COPYING Makefile NEWS ykval-checksum-clients.php \
ykval-common.php ykval-config.php ykval-db.php ykval-db.sql \

4
NEWS
View File

@ -1,3 +1,7 @@
* Version 2.8 unreleased
* Support YubiKey OTPs filtered through a US Dvorak keyboard layout.
* Version 2.7 released 2010-09-12
* Sanity check input OTP variable to avoid any chance of SQL injections.

View File

@ -28,6 +28,11 @@ $h = getHttpVal('h', '');
$client = getHttpVal('id', 0);
$otp = getHttpVal('otp', '');
$otp = strtolower($otp);
if (preg_match("/^[jxe.uidchtnbpygk]+$/", $otp)) {
$new_otp = strtr($otp, "jxe.uidchtnbpygk", "cbdefghijklnrtuv");
$myLog->log(LOG_INFO, 'Dvorak OTP converting ' . $otp . ' to ' . $new_otp);
$otp = $new_otp;
}
$timestamp = getHttpVal('timestamp', 0);
/* Construct response parameters */