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 importunstable
parent
c1b8cee315
commit
046003acb4
|
@ -129,6 +129,8 @@ module Msf::DBManager::Import
|
|||
end
|
||||
end
|
||||
|
||||
# Override REXML's expansion text limit to 50k (default: 10240 bytes)
|
||||
REXML::Security.entity_expansion_text_limit = 51200
|
||||
|
||||
if block
|
||||
import(args.merge(:data => data)) { |type,data| yield type,data }
|
||||
|
|
Loading…
Reference in New Issue