From 6f2873829fcf8306f87d1f1a982a4f0455e540a3 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 6 May 2022 22:39:49 -0300 Subject: Send API messages using the logmaster instead of the C engine if possible. --- logmaster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'logmaster.py') 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. -- cgit v1.2.3-70-g09d2