more standard way to display hex encoded char (\xff instead of \ff) also compatible with python representation

This commit is contained in:
Miroslav Stampar
2011-04-15 11:53:20 +00:00
parent 05a0e1d3b0
commit 4d8a49a87c
2 changed files with 3 additions and 3 deletions

View File

@@ -306,7 +306,7 @@ MAX_INT = sys.maxint
IGNORE_PARAMETERS = ("__VIEWSTATE", "__EVENTARGUMENT", "__EVENTTARGET", "__EVENTVALIDATION", "ASPSESSIONID", "ASP.NET_SESSIONID", "JSESSIONID", "CFID", "CFTOKEN")
# Regex used for recognition of hex encoded characters
HEX_ENCODED_CHAR_REGEX = r"(?P<result>\\[0-9A-Fa-f]{2})"
HEX_ENCODED_CHAR_REGEX = r"(?P<result>\\x[0-9A-Fa-f]{2})"
# Raw chars that will be safe encoded to their slash (\) representations (e.g. newline to \n)
SAFE_ENCODE_SLASH_REPLACEMENTS = "\\\t\n\r\x0b\x0c"