mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-30 23:47:45 +03:00 
			
		
		
		
	Bug fix for international letters (range in 160-255 is also printable)
This commit is contained in:
		
							parent
							
								
									f51ea20bbd
								
							
						
					
					
						commit
						49e8083b40
					
				|  | @ -50,7 +50,7 @@ def safecharencode(value): | |||
|             for char in SAFE_ENCODE_SLASH_REPLACEMENTS: | ||||
|                 retVal = retVal.replace(char, repr(char).strip('\'')) | ||||
| 
 | ||||
|             retVal = reduce(lambda x, y: x + (y if (y in string.printable or ord(y) > 255) else '\\x%02x' % ord(y)), retVal, (unicode if isinstance(value, unicode) else str)()) | ||||
|             retVal = reduce(lambda x, y: x + (y if (y in string.printable or isinstance(value, unicode) and ord(y) >= 160) else '\\x%02x' % ord(y)), retVal, (unicode if isinstance(value, unicode) else str)()) | ||||
| 
 | ||||
|             retVal = retVal.replace(SLASH_MARKER, "\\\\") | ||||
|     elif isinstance(value, list): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user