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
unstable
Christian Catalan 2015-05-19 12:47:19 -05:00
parent c1b8cee315
commit 046003acb4
No known key found for this signature in database
GPG Key ID: E4E6D61EC3953653
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ module Msf::DBManager::Import
end end
end end
# Override REXML's expansion text limit to 50k (default: 10240 bytes)
REXML::Security.entity_expansion_text_limit = 51200
if block if block
import(args.merge(:data => data)) { |type,data| yield type,data } import(args.merge(:data => data)) { |type,data| yield type,data }