mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
better update related to the last commit
This commit is contained in:
parent
c0cc5d1dad
commit
1f1c4c0e61
2 changed files with 14 additions and 2 deletions
|
|
@ -22,6 +22,7 @@ import ntpath
|
|||
import posixpath
|
||||
import httplib
|
||||
import struct
|
||||
import unicodedata
|
||||
|
||||
from ConfigParser import DEFAULTSECT
|
||||
from ConfigParser import RawConfigParser
|
||||
|
|
@ -2431,3 +2432,13 @@ def removeReflectiveValues(content, payload):
|
|||
logger.debug(debugMsg)
|
||||
|
||||
return retVal
|
||||
|
||||
def normalizeUnicode(value):
|
||||
"""
|
||||
Does an ASCII normalization of unicode strings
|
||||
Reference: http://www.peterbe.com/plog/unicode-to-ascii
|
||||
"""
|
||||
retVal = value
|
||||
if isinstance(value, unicode):
|
||||
retVal = unicodedata.normalize('NFKD', value).encode('ascii','ignore')
|
||||
return retVal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue