set MAX_DATA in all places where we import defusedxml packages

This commit is contained in:
Jude Nelson
2018-07-05 23:41:27 -04:00
parent 1582197c7a
commit 541c20afd6

View File

@@ -46,9 +46,6 @@ from jsonschema import ValidationError
import xmlrpclib
from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler
# stop common XML attacks
from defusedxml import xmlrpc
xmlrpc.monkey_patch()
import virtualchain
from virtualchain.lib.hashing import *
@@ -72,6 +69,11 @@ from lib.subdomains import (subdomains_init, SubdomainNotFound, get_subdomain_in
import lib.nameset.virtualchain_hooks as virtualchain_hooks
import lib.config as config
# stop common XML attacks
from defusedxml import xmlrpc
xmlrpc.MAX_DATA = MAX_RPC_LEN
xmlrpc.monkey_patch()
# global variables, for use with the RPC server
bitcoind = None
rpc_server = None