Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c754b5

Browse files
committed
Minor patch
1 parent 8f9979c commit 2c754b5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/parse/payloads.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from xml.etree import ElementTree as et
1111

12+
from lib.core.common import getSafeExString
1213
from lib.core.data import conf
1314
from lib.core.data import paths
1415
from lib.core.datatype import AttribDict
@@ -74,7 +75,7 @@ def loadBoundaries():
7475
doc = et.parse(paths.BOUNDARIES_XML)
7576
except Exception, ex:
7677
errMsg = "something seems to be wrong with "
77-
errMsg += "the file '%s' ('%s'). Please make " % (paths.BOUNDARIES_XML, ex)
78+
errMsg += "the file '%s' ('%s'). Please make " % (paths.BOUNDARIES_XML, getSafeExString(ex))
7879
errMsg += "sure that you haven't made any changes to it"
7980
raise SqlmapInstallationException, errMsg
8081

@@ -92,7 +93,7 @@ def loadPayloads():
9293
doc = et.parse(payloadFilePath)
9394
except Exception, ex:
9495
errMsg = "something seems to be wrong with "
95-
errMsg += "the file '%s' ('%s'). Please make " % (payloadFilePath, ex)
96+
errMsg += "the file '%s' ('%s'). Please make " % (payloadFilePath, getSafeExString(ex))
9697
errMsg += "sure that you haven't made any changes to it"
9798
raise SqlmapInstallationException, errMsg
9899

0 commit comments

Comments
 (0)