diff --git a/lib/core/common.py b/lib/core/common.py index 30beca713..2e86938ef 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -37,8 +37,8 @@ from xml.dom import minidom from xml.sax import parse from extra.cloak.cloak import decloak +from extra.magic import magic from extra.odict.odict import OrderedDict -from lib.contrib import magic from lib.core.data import conf from lib.core.data import dbmsDict from lib.core.data import kb @@ -540,7 +540,7 @@ def getDocRoot(): message = "please provide the web server document root " message += "[%s]: " % ",".join(root for root in defaultDocRoot) - inputDocRoot = readInput(message, default=defaultDocRoot) + inputDocRoot = readInput(message, default=defaultDocRoot[0]) if inputDocRoot: if isinstance(inputDocRoot, basestring):