From d44c2623a06ed7b8be0b18c40b524cc476e5c263 Mon Sep 17 00:00:00 2001 From: dg9vh Date: Tue, 14 Feb 2017 13:44:49 +0000 Subject: [PATCH] remove strange characters at beginning of talker-alias --- include/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index f580d12..c8139b0 100644 --- a/include/functions.php +++ b/include/functions.php @@ -808,7 +808,9 @@ function getName($callsign) { // M: 2017-02-13 15:53:30.991 0000: 04 00 5E 49 57 38 44 59 94 *..^IW8DY.* // M: 2017-02-13 15:53:31.253 0000: 05 00 20 47 69 6F 76 61 DC *.. Giova.* function decodeAlias($logLine) { - $tok1 = encode(substr($logLine, 40, 2)); + $tok1 = ""; + if (substr($logLine, 34, 2) !=="04") + $tok1 = encode(substr($logLine, 40, 2)); $tok2 = encode(substr($logLine, 43, 2)); $tok3 = encode(substr($logLine, 46, 2)); $tok4 = encode(substr($logLine, 49, 2));