mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-26 05:31:04 +03:00 
			
		
		
		
	Patch for an Issue #1852
This commit is contained in:
		
							parent
							
								
									808068d70a
								
							
						
					
					
						commit
						72cf06119c
					
				|  | @ -1350,12 +1350,15 @@ def parseTargetUrl(): | ||||||
|     else: |     else: | ||||||
|         conf.port = 80 |         conf.port = 80 | ||||||
| 
 | 
 | ||||||
|     if urlSplit.query: |  | ||||||
|         conf.parameters[PLACE.GET] = urldecode(urlSplit.query) if urlSplit.query and urlencode(DEFAULT_GET_POST_DELIMITER, None) not in urlSplit.query else urlSplit.query |  | ||||||
| 
 |  | ||||||
|     conf.url = getUnicode("%s://%s:%d%s" % (conf.scheme, ("[%s]" % conf.hostname) if conf.ipv6 else conf.hostname, conf.port, conf.path)) |     conf.url = getUnicode("%s://%s:%d%s" % (conf.scheme, ("[%s]" % conf.hostname) if conf.ipv6 else conf.hostname, conf.port, conf.path)) | ||||||
|     conf.url = conf.url.replace(URI_QUESTION_MARKER, '?') |     conf.url = conf.url.replace(URI_QUESTION_MARKER, '?') | ||||||
| 
 | 
 | ||||||
|  |     if urlSplit.query: | ||||||
|  |         if '=' not in urlSplit.query: | ||||||
|  |             conf.url = "%s?%s" % (conf.url, getUnicode(urlSplit.query)) | ||||||
|  |         else: | ||||||
|  |             conf.parameters[PLACE.GET] = urldecode(urlSplit.query) 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 not conf.referer and (intersect(REFERER_ALIASES, conf.testParameter, True) or conf.level >= 3): | ||||||
|         debugMsg = "setting the HTTP Referer header to the target URL" |         debugMsg = "setting the HTTP Referer header to the target URL" | ||||||
|         logger.debug(debugMsg) |         logger.debug(debugMsg) | ||||||
|  |  | ||||||
|  | @ -19,7 +19,7 @@ from lib.core.enums import OS | ||||||
| from lib.core.revision import getRevisionNumber | from lib.core.revision import getRevisionNumber | ||||||
| 
 | 
 | ||||||
| # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | ||||||
| VERSION = "1.0.5.17" | VERSION = "1.0.5.18" | ||||||
| REVISION = getRevisionNumber() | REVISION = getRevisionNumber() | ||||||
| STABLE = VERSION.count('.') <= 2 | STABLE = VERSION.count('.') <= 2 | ||||||
| VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") | VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user