Allow uppercase characters in machine id

This commit is contained in:
Skylar Ittner 2020-09-03 19:05:00 -06:00
parent 6958240e3d
commit c31826e656

View File

@ -15,13 +15,13 @@ $APIS = [
"lookup" => [ "lookup" => [
"load" => "machine.php", "load" => "machine.php",
"vars" => [ "vars" => [
"id" => "/^[0-9a-z]+$/" "id" => "/^[0-9a-zA-Z]+$/"
] ]
], ],
"editmachine" => [ "editmachine" => [
"load" => "machine.php", "load" => "machine.php",
"vars" => [ "vars" => [
"id" => "/^[0-9a-z]+$/", "id" => "/^[0-9a-zA-Z]+$/",
"type (optional)" => "numeric", "type (optional)" => "numeric",
"model (optional)" => "string", "model (optional)" => "string",
"clientid (optional)" => "string", "clientid (optional)" => "string",
@ -52,7 +52,7 @@ $APIS = [
"addevent" => [ "addevent" => [
"load" => "addevent.php", "load" => "addevent.php",
"vars" => [ "vars" => [
"id" => "/^[0-9a-z]+$/", "id" => "/^[0-9a-zA-Z]+$/",
"date" => "string", "date" => "string",
"event" => "string", "event" => "string",
"publicnotes (optional)" => "string", "publicnotes (optional)" => "string",