From c31826e656d20a3d09e4aeef23b67648acdbb283 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Thu, 3 Sep 2020 19:05:00 -0600 Subject: [PATCH] Allow uppercase characters in machine id --- api/apisettings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/apisettings.php b/api/apisettings.php index 8e1ddce..3146b0b 100644 --- a/api/apisettings.php +++ b/api/apisettings.php @@ -15,13 +15,13 @@ $APIS = [ "lookup" => [ "load" => "machine.php", "vars" => [ - "id" => "/^[0-9a-z]+$/" + "id" => "/^[0-9a-zA-Z]+$/" ] ], "editmachine" => [ "load" => "machine.php", "vars" => [ - "id" => "/^[0-9a-z]+$/", + "id" => "/^[0-9a-zA-Z]+$/", "type (optional)" => "numeric", "model (optional)" => "string", "clientid (optional)" => "string", @@ -52,7 +52,7 @@ $APIS = [ "addevent" => [ "load" => "addevent.php", "vars" => [ - "id" => "/^[0-9a-z]+$/", + "id" => "/^[0-9a-zA-Z]+$/", "date" => "string", "event" => "string", "publicnotes (optional)" => "string",