From 3435052e270f8bc9fdf3407f39499299966e8cc8 Mon Sep 17 00:00:00 2001 From: Ed Sandor Date: Sat, 12 Dec 2020 11:08:47 -0700 Subject: [PATCH] sanitize empty comment --- owrx/kiss.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/owrx/kiss.py b/owrx/kiss.py index 5874a14..442371a 100644 --- a/owrx/kiss.py +++ b/owrx/kiss.py @@ -62,6 +62,8 @@ IGLOGIN {callsign} {password} if((len(comment) > 0) and ((comment[0] != '"') or (comment[len(comment)-1] != '"'))): comment = "\"" + comment + "\"" + else if(len(comment) > 0): + comment = "\"\"" pbeacon= "PBEACON sendto=IG delay=0:30 every=60:00 symbol={symbol} lat={lat} long={lon} POWER={power} {height} {gain} {adir} {freq} {tone} {offset} comment={comment}".format( symbol=symbol, lat=lat, lon=lon, power=power, height=height, gain=gain, adir=adir, freq=freq, tone=tone, offset=offset, comment=comment )