mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 01:47:37 +03:00 
			
		
		
		
	Added a reference url (http charset priority)
This commit is contained in:
		
							parent
							
								
									f71a65a9a0
								
							
						
					
					
						commit
						7a04595f5e
					
				| 
						 | 
				
			
			@ -258,7 +258,7 @@ def decodePage(page, contentEncoding, contentType):
 | 
			
		|||
 | 
			
		||||
        if (any((httpCharset, metaCharset)) and not all((httpCharset, metaCharset)))\
 | 
			
		||||
            or (httpCharset == metaCharset and all((httpCharset, metaCharset))):
 | 
			
		||||
            kb.pageEncoding = httpCharset or metaCharset
 | 
			
		||||
            kb.pageEncoding = httpCharset or metaCharset  # Reference: http://bytes.com/topic/html-css/answers/154758-http-equiv-vs-true-header-has-precedence
 | 
			
		||||
            debugMsg = "declared web page charset '%s'" % kb.pageEncoding
 | 
			
		||||
            singleTimeLogMessage(debugMsg, logging.DEBUG, debugMsg)
 | 
			
		||||
        else:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user