mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 07:57:47 +03:00 
			
		
		
		
	Fixes #4085
This commit is contained in:
		
							parent
							
								
									ee7aa68da8
								
							
						
					
					
						commit
						e448905eb1
					
				|  | @ -1649,13 +1649,13 @@ def parseTargetUrl(): | |||
|         else: | ||||
|             conf.parameters[PLACE.GET] = urldecode(urlSplit.query, spaceplus=not conf.base64Parameter) if urlSplit.query and urlencode(DEFAULT_GET_POST_DELIMITER, None) not in urlSplit.query else urlSplit.query | ||||
| 
 | ||||
|     if not conf.referer and (intersect(REFERER_ALIASES, conf.testParameter, True) or conf.level >= 3): | ||||
|     if (intersect(REFERER_ALIASES, conf.testParameter, True) or conf.level >= 3) and not any(_[0] == HTTP_HEADER.REFERER for _ in conf.httpHeaders): | ||||
|         debugMsg = "setting the HTTP Referer header to the target URL" | ||||
|         logger.debug(debugMsg) | ||||
|         conf.httpHeaders = [_ for _ in conf.httpHeaders if _[0] != HTTP_HEADER.REFERER] | ||||
|         conf.httpHeaders.append((HTTP_HEADER.REFERER, conf.url.replace(kb.customInjectionMark, ""))) | ||||
| 
 | ||||
|     if not conf.host and (intersect(HOST_ALIASES, conf.testParameter, True) or conf.level >= 5): | ||||
|     if (intersect(HOST_ALIASES, conf.testParameter, True) or conf.level >= 5) and not any(_[0] == HTTP_HEADER.HOST for _ in conf.httpHeaders): | ||||
|         debugMsg = "setting the HTTP Host header to the target URL" | ||||
|         logger.debug(debugMsg) | ||||
|         conf.httpHeaders = [_ for _ in conf.httpHeaders if _[0] != HTTP_HEADER.HOST] | ||||
|  |  | |||
|  | @ -18,7 +18,7 @@ from lib.core.enums import OS | |||
| from thirdparty.six import unichr as _unichr | ||||
| 
 | ||||
| # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | ||||
| VERSION = "1.4.2.1" | ||||
| VERSION = "1.4.2.2" | ||||
| TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" | ||||
| TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} | ||||
| VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user