diff --git a/endpoints/logistics.uspsaddress.php b/endpoints/logistics.uspsaddress.php index b445f9d..b22c624 100644 --- a/endpoints/logistics.uspsaddress.php +++ b/endpoints/logistics.uspsaddress.php @@ -6,7 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -$hash = sha1($VARS["number"] ?? "" . "|" . ($VARS["unit"] ?? "") . "|" . $VARS["street"] . "|" . ($VARS["city"] ?? "") . "|" . ($VARS["state"] ?? "") . "|" . ($VARS["zip"] ?? "")); +$hash = sha1(($VARS["number"] ?? "") . "|" . ($VARS["unit"] ?? "") . "|" . ($VARS["street"] ?? ""). "|" . ($VARS["city"] ?? "") . "|" . ($VARS["state"] ?? "") . "|" . ($VARS["zip"] ?? "")); $cacheresp = $memcache->get("logistics.uspsaddress." . $hash); if ($cacheresp !== false && empty($VARS["nocache"])) { exitWithJson(json_decode($cacheresp, true));