Sanitize comment closing quote

This commit is contained in:
Ed Sandor 2020-12-12 10:04:42 -07:00
parent 0fb4ae4fc0
commit fdbbbcb64c
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ IGLOGIN {callsign} {password}
offset = "OFFSET=" + str(pm["aprs_igate_offset"]) if "aprs_igate_offset" in pm else ""
comment = str(pm["aprs_igate_comment"]) if "aprs_igate_comment" in pm else "\"OpenWebRX APRS gateway\""
if(comment[0] != '"'):
if(comment[0] != '"' or comment[len(comment)-1] != '"'):
comment = "\"" + 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(