summaryrefslogtreecommitdiff
path: root/logmaster.py
diff options
context:
space:
mode:
Diffstat (limited to 'logmaster.py')
-rwxr-xr-xlogmaster.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/logmaster.py b/logmaster.py
index 97941a8a4..cdd59df16 100755
--- a/logmaster.py
+++ b/logmaster.py
@@ -24,7 +24,7 @@ import mysql.connector, signal, sys, threading, time, traceback
## Default values
HOST="127.0.0.1"; PORT=0; USER=""; PASS=""; DBXT=""; db=None;
sqli = []; running=True
-SQL_PINGTIME=300.0; SQL_FLUSH=3.0
+SQL_PINGTIME=300.0; SQL_FLUSH=1.0
## Warnings
ERR=0
@@ -177,7 +177,7 @@ while running:
## Command: SAD
## Description: Replaces "?" with escaped data.
elif cmd.startswith("SAD"):
- bf=bf.replace("?%s" % cmd.replace("SAD", ""), args.replace("\\", "\\\\").replace('"','\\"').replace("'", "\\'"))
+ bf=bf.replace("?%s" % cmd.replace("SAD", ""), args.replace("\\", "\\\\").replace('"','\\"').replace("'", "\\'").replace('\n','').replace('\r','').replace('\0',''))
## Command: SQLRUN
## Description: Executes the prepared SQL statement.
## Sanitization must be done using SAD commands.