mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
New Device creation int.replace issue #833
This commit is contained in:
@@ -853,7 +853,10 @@ def sanitize_string(input):
|
|||||||
def sanitize_SQL_input(val):
|
def sanitize_SQL_input(val):
|
||||||
if val is None:
|
if val is None:
|
||||||
return ''
|
return ''
|
||||||
|
if isinstance(val, str):
|
||||||
return val.replace("'", "_")
|
return val.replace("'", "_")
|
||||||
|
return val # Return non-string values as they are
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Function to normalize the string and remove diacritics
|
# Function to normalize the string and remove diacritics
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ def process_scan (db):
|
|||||||
mylog('none','[Process Scan] Stats end')
|
mylog('none','[Process Scan] Stats end')
|
||||||
|
|
||||||
# Create Events
|
# Create Events
|
||||||
mylog('verbose','[Process Scan] Sessions Events (connect / discconnect)')
|
mylog('verbose','[Process Scan] Sessions Events (connect / disconnect)')
|
||||||
insert_events(db)
|
insert_events(db)
|
||||||
|
|
||||||
# Create New Devices
|
# Create New Devices
|
||||||
|
|||||||
Reference in New Issue
Block a user