@@ -1964,16 +1964,16 @@ def _useWizardInterface():
19641964
19651965 dataToStdout ("\n sqlmap is running, please wait..\n \n " )
19661966
1967- def _saveCmdline ():
1967+ def _saveConfig ():
19681968 """
1969- Saves the command line options on a sqlmap configuration INI file
1969+ Saves the command line options to a sqlmap configuration INI file
19701970 Format.
19711971 """
19721972
1973- if not conf .saveCmdline :
1973+ if not conf .saveConfig :
19741974 return
19751975
1976- debugMsg = "saving command line options on a sqlmap configuration INI file"
1976+ debugMsg = "saving command line options to a sqlmap configuration INI file"
19771977 logger .debug (debugMsg )
19781978
19791979 config = UnicodeRawConfigParser ()
@@ -1997,7 +1997,7 @@ def _saveCmdline():
19971997 datatype = datatype [0 ]
19981998
19991999 if option in IGNORE_SAVE_OPTIONS :
2000- value = None
2000+ continue
20012001
20022002 if value is None :
20032003 if datatype == OPTION_TYPE .BOOLEAN :
@@ -2015,16 +2015,16 @@ def _saveCmdline():
20152015
20162016 config .set (family , option , value )
20172017
2018- confFP = openFile (paths . SQLMAP_CONFIG , "wb" )
2018+ confFP = openFile (conf . saveConfig , "wb" )
20192019
20202020 try :
20212021 config .write (confFP )
20222022 except IOError , ex :
20232023 errMsg = "something went wrong while trying "
2024- errMsg += "to write to the configuration file '%s' ('%s')" % (paths . SQLMAP_CONFIG , ex )
2024+ errMsg += "to write to the configuration file '%s' ('%s')" % (conf . saveConfig , ex )
20252025 raise SqlmapSystemException (errMsg )
20262026
2027- infoMsg = "saved command line options to the configuration file '%s'" % paths . SQLMAP_CONFIG
2027+ infoMsg = "saved command line options to the configuration file '%s'" % conf . saveConfig
20282028 logger .info (infoMsg )
20292029
20302030def setVerbosity ():
@@ -2479,7 +2479,7 @@ def init():
24792479
24802480 _useWizardInterface ()
24812481 setVerbosity ()
2482- _saveCmdline ()
2482+ _saveConfig ()
24832483 _setRequestFromFile ()
24842484 _cleanupOptions ()
24852485 _dirtyPatches ()
0 commit comments