From b92803e77f9ee77aee4287c26d46fce6b1fc3bf9 Mon Sep 17 00:00:00 2001 From: Mysteryem Date: Thu, 15 Jan 2026 21:19:13 +0000 Subject: [PATCH] Core: replace the eval in OptionsCreator.py (#5828) --- OptionsCreator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OptionsCreator.py b/OptionsCreator.py index 05a0d58ccd..103dc763cf 100644 --- a/OptionsCreator.py +++ b/OptionsCreator.py @@ -509,8 +509,10 @@ class OptionsCreator(ThemedApp): self.options[name] = "random-" + str(self.options[name]) else: self.options[name] = self.options[name].replace("random-", "") - if self.options[name].isnumeric() or self.options[name] in ("True", "False"): - self.options[name] = eval(self.options[name]) + if self.options[name].isnumeric(): + self.options[name] = int(self.options[name]) + elif self.options[name] in ("True", "False"): + self.options[name] = self.options[name] == "True" base_object = instance.parent.parent label_object = instance.parent