mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 01:47:37 +03:00 
			
		
		
		
	Fixes #1647
This commit is contained in:
		
							parent
							
								
									c7ea3d65be
								
							
						
					
					
						commit
						de06ae6803
					
				| 
						 | 
				
			
			@ -160,7 +160,10 @@ def htmlunescape(value):
 | 
			
		|||
    if value and isinstance(value, basestring):
 | 
			
		||||
        codes = (('<', '<'), ('>', '>'), ('"', '"'), (' ', ' '), ('&', '&'))
 | 
			
		||||
        retVal = reduce(lambda x, y: x.replace(y[0], y[1]), codes, retVal)
 | 
			
		||||
        retVal = re.sub(r"&#x([^;]+);", lambda match: chr(int(match.group(1), 16)), retVal)
 | 
			
		||||
        try:
 | 
			
		||||
            retVal = re.sub(r"&#x([^;]+);", lambda match: unichr(int(match.group(1), 16)), retVal)
 | 
			
		||||
        except ValueError:
 | 
			
		||||
            pass
 | 
			
		||||
    return retVal
 | 
			
		||||
 | 
			
		||||
def singleTimeWarnMessage(message):  # Cross-linked function
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user