mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 07:57:47 +03:00 
			
		
		
		
	Patch for #1601
This commit is contained in:
		
							parent
							
								
									d7d786d3b5
								
							
						
					
					
						commit
						aee47d32c5
					
				|  | @ -86,6 +86,7 @@ from lib.core.exception import SqlmapSilentQuitException | |||
| from lib.core.exception import SqlmapSyntaxException | ||||
| from lib.core.exception import SqlmapSystemException | ||||
| from lib.core.exception import SqlmapUserQuitException | ||||
| from lib.core.exception import SqlmapValueException | ||||
| from lib.core.log import LOGGER_HANDLER | ||||
| from lib.core.optiondict import optDict | ||||
| from lib.core.settings import BANNER | ||||
|  | @ -1638,7 +1639,9 @@ def safeStringFormat(format_, params): | |||
|                 match = re.search(r"(\A|[^A-Za-z0-9])(%s)([^A-Za-z0-9]|\Z)", retVal) | ||||
|                 if match: | ||||
|                     if count >= len(params): | ||||
|                         raise Exception("wrong number of parameters during string formatting") | ||||
|                         warnMsg = "wrong number of parameters during string formatting. " | ||||
|                         warnMsg += "Please report by e-mail content \"%r | %r | %r\" to 'dev@sqlmap.org'" % (format_, params, retVal) | ||||
|                         raise SqlmapValueException(warnMsg) | ||||
|                     else: | ||||
|                         retVal = re.sub(r"(\A|[^A-Za-z0-9])(%s)([^A-Za-z0-9]|\Z)", r"\g<1>%s\g<3>" % params[count], retVal, 1) | ||||
|                         count += 1 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user