diff --git a/server/helper.py b/server/helper.py index 4c6010b0..2fea5702 100755 --- a/server/helper.py +++ b/server/helper.py @@ -852,8 +852,11 @@ def sanitize_string(input): #------------------------------------------------------------------------------- def sanitize_SQL_input(val): if val is None: - return '' - return val.replace("'", "_") + return '' + if isinstance(val, str): + return val.replace("'", "_") + return val # Return non-string values as they are + #------------------------------------------------------------------------------- # Function to normalize the string and remove diacritics diff --git a/server/networkscan.py b/server/networkscan.py index 7a9b6206..7fa7cd90 100755 --- a/server/networkscan.py +++ b/server/networkscan.py @@ -28,7 +28,7 @@ def process_scan (db): mylog('none','[Process Scan] Stats end') # Create Events - mylog('verbose','[Process Scan] Sessions Events (connect / discconnect)') + mylog('verbose','[Process Scan] Sessions Events (connect / disconnect)') insert_events(db) # Create New Devices