mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-21 01:46:59 +08:00
set MAX_DATA in all places where we import defusedxml packages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user