🐛 fix(utilities.py): use ast.literal_eval instead of eval to improve security
🐛 fix(GenericNode): add semicolon to console.log statement
The use of eval in the code can be a security risk as it can execute arbitrary code. Using ast.literal_eval instead of eval is a safer alternative as it only evaluates a subset of Python expressions. The semicolon was added to the console.log statement to improve code consistency.
This commit is contained in:
parent
e2345dbe1d
commit
c4159f3af4
2 changed files with 3 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ export default function GenericNode({
|
|||
deleteNode(data.id);
|
||||
return;
|
||||
}
|
||||
console.log(data)
|
||||
console.log(data);
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue