Code Injection Fix

This commit is contained in:
rparedis 2022-12-16 11:50:25 +01:00
parent 50164a92c6
commit 325880f46e
4 changed files with 8 additions and 4707 deletions

View file

@ -124,6 +124,8 @@ def easyCommand(function, args):
for i in range(len(args)):
if i != 0:
text += ", "
if isinstance(args[i], str):
args[i] = '"%s"' % args[i][1:-1].replace('"', "\\\"").replace("'", "\\'")
text += str(args[i])
text += ")"
return text