fix: use indirect eval
This commit is contained in:
parent
c9cdacb4ce
commit
90bb08a279
1 changed files with 1 additions and 1 deletions
|
|
@ -2197,7 +2197,7 @@ Object.assign(frappe.utils, {
|
|||
if (parsed_value.match(/^[0-9+\-/*.() ]+$/)) {
|
||||
// If it is a string containing operators
|
||||
try {
|
||||
return eval(parsed_value);
|
||||
return (0, eval)(parsed_value);
|
||||
} catch (e) {
|
||||
// bad expression
|
||||
return value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue