Skip to content

Commit 046003a

Browse files
committed
Increase REXML expansion text limit
MSP-9532 * Increase to reasonable size to handle larger xml file expansion on import * Prevents the 'RuntimeError entity expansion has grown too large' error that prevents import
1 parent c1b8cee commit 046003a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/msf/core/db_manager/import.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def import_file(args={}, &block)
129129
end
130130
end
131131

132+
# Override REXML's expansion text limit to 50k (default: 10240 bytes)
133+
REXML::Security.entity_expansion_text_limit = 51200
132134

133135
if block
134136
import(args.merge(:data => data)) { |type,data| yield type,data }

0 commit comments

Comments
 (0)