mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 01:52:18 +01:00
use fgetcsv instead of fscanf, handles empty fields
This commit is contained in:
parent
020d8dd3dc
commit
027dc9ff6c
@ -23,7 +23,7 @@ if (!$db->connect()) {
|
||||
}
|
||||
|
||||
|
||||
while ($res=fscanf(STDIN, "%d\t%d\t%d\t%s\t%d\t%d\t%d\t%d\t%s\t%s\t")) {
|
||||
while ($res=fgetcsv(STDIN, 0, "\t")) {
|
||||
$params=array("active"=>$res[0],
|
||||
"created"=>$res[1],
|
||||
"modified"=>$res[2],
|
||||
|
Loading…
x
Reference in New Issue
Block a user