From 662c19568e8cf6beed4fb1aa25b930e5269239ed Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sat, 17 Sep 2016 13:32:34 +0100 Subject: [PATCH] Don't try to compute registrations on non-hex addresses (e.g. non-icao: ~123456) --- public_html/registrations.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public_html/registrations.js b/public_html/registrations.js index fc1102d..1fab589 100644 --- a/public_html/registrations.js +++ b/public_html/registrations.js @@ -107,6 +107,9 @@ registration_from_hexid = (function () { function lookup(hexid) { var hexid = +("0x" + hexid); + if (isNaN(hexid)) { + return null; + } reg = n_reg(hexid); if (reg)