fix : language_bash_attempt error

This commit is contained in:
martin legrand
2025-04-11 12:44:55 +02:00
parent 4198e932ca
commit 92f9b93353
5 changed files with 194 additions and 8 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ class BashInterpreter(Tools):
command = command.replace('\n', '')
if self.safe_mode and is_unsafe(commands):
return "Unsafe command detected, execution aborted."
if self.language_bash_attempt(command) and allow_language_exec_bash == False:
if self.language_bash_attempt(command) and self.allow_language_exec_bash == False:
continue
try:
process = subprocess.Popen(