Fix for an Issue #220

This commit is contained in:
Miroslav Stampar 2012-10-25 09:42:43 +02:00
parent b7429dc6bb
commit c2058dfc8f

View File

@ -14,6 +14,7 @@ from lib.core.common import normalizePath
from lib.core.common import ntToPosixSlashes from lib.core.common import ntToPosixSlashes
from lib.core.common import posixToNtSlashes from lib.core.common import posixToNtSlashes
from lib.core.common import readInput from lib.core.common import readInput
from lib.core.common import unArrayizeValue
from lib.core.data import conf from lib.core.data import conf
from lib.core.data import kb from lib.core.data import kb
from lib.core.data import logger from lib.core.data import logger
@ -85,7 +86,7 @@ class Miscellaneous:
if conf.direct: if conf.direct:
query = "SELECT %s" % query query = "SELECT %s" % query
kb.bannerFp["dbmsVersion"] = inject.getValue(query) kb.bannerFp["dbmsVersion"] = unArrayizeValue(inject.getValue(query))
kb.bannerFp["dbmsVersion"] = (kb.bannerFp["dbmsVersion"] or "").replace(",", "").replace("-", "").replace(" ", "") kb.bannerFp["dbmsVersion"] = (kb.bannerFp["dbmsVersion"] or "").replace(",", "").replace("-", "").replace(" ", "")
def delRemoteFile(self, filename): def delRemoteFile(self, filename):