Code Injection Fix
This commit is contained in:
parent
50164a92c6
commit
325880f46e
4 changed files with 8 additions and 4707 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue