Skip to content

Commit

Permalink
fix: block format attributes (#22028)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Aug 12, 2023
1 parent 16aa414 commit ce1355d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frappe/utils/safe_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ def _getattr(object, name, default=None):
# Traceback Attributes
"tb_frame",
"tb_next",
# Format Attributes
"format",
"format_map",
}

if isinstance(name, str) and (name in UNSAFE_ATTRIBUTES):
Expand Down

0 comments on commit ce1355d

Please sign in to comment.