mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-30 23:47:45 +03:00 
			
		
		
		
	Minor update for an Issue #111
This commit is contained in:
		
							parent
							
								
									fccd69721e
								
							
						
					
					
						commit
						1153b4563c
					
				|  | @ -213,7 +213,7 @@ def decodePage(page, contentEncoding, contentType): | |||
|     if contentType and not isinstance(page, unicode) and any(map(lambda x: x in contentType.lower(), ("text/txt", "text/raw", "text/html", "text/xml"))): | ||||
|         # e.g. Ãëàâà | ||||
|         if "&#" in page: | ||||
|             page = re.sub('&#(\d+);', lambda _: chr(int(_.group(1))) if int(_.group(1)) < 256 else _.group(0), page) | ||||
|             page = re.sub('&#(\d{1,3});', lambda _: chr(int(_.group(1))) if int(_.group(1)) < 256 else _.group(0), page) | ||||
| 
 | ||||
|         kb.pageEncoding = kb.pageEncoding or checkCharEncoding(getHeuristicCharEncoding(page)) | ||||
|         page = getUnicode(page, kb.pageEncoding) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user