diff --git a/lib/core/option.py b/lib/core/option.py index 7726f056e..6b15dc681 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -71,6 +71,7 @@ from lib.core.exception import sqlmapSyntaxException from lib.core.exception import sqlmapUnsupportedDBMSException from lib.core.exception import sqlmapUserQuitException from lib.core.optiondict import optDict +from lib.core.settings import CODECS_LIST_PAGE from lib.core.settings import DEFAULT_PAGE_ENCODING from lib.core.settings import IS_WIN from lib.core.settings import PLATFORM @@ -1641,7 +1642,7 @@ def __basicOptionValidation(): codecs.lookup(conf.charset) except LookupError: errMsg = "unknown charset '%s'. please visit page " % conf.charset - errMsg += "'http://docs.python.org/library/codecs.html#standard-encodings' " + errMsg += "'%s' " % CODECS_LIST_PAGE errMsg += "to get the full list of supported charsets" raise sqlmapSyntaxException, errMsg diff --git a/lib/core/settings.py b/lib/core/settings.py index 209d3e20e..e9cca1b53 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -330,3 +330,6 @@ TURN_OFF_RESUME_INFO_LIMIT = 20 # Strftime format for results file used in multiple target mode RESULTS_FILE_FORMAT = 'results-%I%M%p_%m%d%Y.csv' + +# Official web page with the list of Python supported codecs +CODECS_LIST_PAGE = 'http://docs.python.org/library/codecs.html#standard-encodings'