File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010from xml .etree import ElementTree as et
1111
12+ from lib .core .common import getSafeExString
1213from lib .core .data import conf
1314from lib .core .data import paths
1415from 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
You can’t perform that action at this time.
0 commit comments