mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-07-23 16:28:12 -07:00
Fixed missing none check in interface discovery sanitizer thanks to PAzter1101
This commit is contained in:
@@ -87,6 +87,7 @@ class InterfaceAnnouncer():
|
|||||||
RNS.trace_exception(e)
|
RNS.trace_exception(e)
|
||||||
|
|
||||||
def sanitize(self, in_str):
|
def sanitize(self, in_str):
|
||||||
|
if in_str == None: return None
|
||||||
sanitized = in_str.replace("\n", "")
|
sanitized = in_str.replace("\n", "")
|
||||||
sanitized = sanitized.replace("\r", "")
|
sanitized = sanitized.replace("\r", "")
|
||||||
sanitized = sanitized.strip()
|
sanitized = sanitized.strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user