Skip to content

Commit 2102b7c

Browse files
committed
Remove unused max_create_depth variable from safe_json_parse method
1 parent c4159c3 commit 2102b7c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/hooks/app/helpers.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def load_handler(handler_class_name)
9595
def safe_json_parse(json_string)
9696
# Security limits for JSON parsing
9797
max_nesting = ENV.fetch("JSON_MAX_NESTING", "20").to_i
98-
max_create_depth = ENV.fetch("JSON_MAX_CREATE_DEPTH", "15").to_i
9998

10099
# Additional size check before parsing
101100
if json_string.length > ENV.fetch("JSON_MAX_SIZE", "10485760").to_i # 10MB default

0 commit comments

Comments
 (0)