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

Skip to content

Commit 3048e9f

Browse files
committed
minor refactoring
1 parent cc07e5d commit 3048e9f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/core/option.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
from lib.core.exception import sqlmapUnsupportedDBMSException
7272
from lib.core.exception import sqlmapUserQuitException
7373
from lib.core.optiondict import optDict
74+
from lib.core.settings import CODECS_LIST_PAGE
7475
from lib.core.settings import DEFAULT_PAGE_ENCODING
7576
from lib.core.settings import IS_WIN
7677
from lib.core.settings import PLATFORM
@@ -1641,7 +1642,7 @@ def __basicOptionValidation():
16411642
codecs.lookup(conf.charset)
16421643
except LookupError:
16431644
errMsg = "unknown charset '%s'. please visit page " % conf.charset
1644-
errMsg += "'http://docs.python.org/library/codecs.html#standard-encodings' "
1645+
errMsg += "'%s' " % CODECS_LIST_PAGE
16451646
errMsg += "to get the full list of supported charsets"
16461647
raise sqlmapSyntaxException, errMsg
16471648

lib/core/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,3 +330,6 @@
330330

331331
# Strftime format for results file used in multiple target mode
332332
RESULTS_FILE_FORMAT = 'results-%I%M%p_%m%d%Y.csv'
333+
334+
# Official web page with the list of Python supported codecs
335+
CODECS_LIST_PAGE = 'http://docs.python.org/library/codecs.html#standard-encodings'

0 commit comments

Comments
 (0)