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:
parent
192b3c77a2
commit
016313a1e3
2
Makefile
2
Makefile
@ -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
4
NEWS
@ -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.
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user