From aefd3d5e9f0e193dcab41809818823e52a37ff9e Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sat, 28 Nov 2020 18:25:49 -0700 Subject: [PATCH] Put package=1 in public tracking URL to specify it's a package not a machine --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 9ca4d40..5f4d345 100644 --- a/public/index.php +++ b/public/index.php @@ -88,7 +88,7 @@ if (isset($_GET["backgroundcolor"]) && !empty($_GET["backgroundcolor"]) && preg_ '

' . htmlspecialchars($_GET['id']) . ' is not valid. Please try re-typing it.

', getSearchBox() ]); - } else if (empty($_GET["id"]) || (!Machine::exists($_GET["id"]) && !Machine::serialExists($_GET["id"]) && !Component::exists($_GET["id"]))) { + } else if (!empty($_GET["package"]) || empty($_GET["id"]) || (!Machine::exists($_GET["id"]) && !Machine::serialExists($_GET["id"]) && !Component::exists($_GET["id"]))) { // try package tracking query $trackingok = false; if (!empty($_GET["id"]) && preg_match("/^[a-z0-9]{10,}$/", $_GET["id"])) {