mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-04-12 02:02:25 +02: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],
|
$params=array("active"=>$res[0],
|
||||||
"created"=>$res[1],
|
"created"=>$res[1],
|
||||||
"modified"=>$res[2],
|
"modified"=>$res[2],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user