Another patch related to #1539 (simplifying unicode bad chars and preventing double encoding of safe chars)

This commit is contained in:
Miroslav Stampar
2015-11-16 15:02:30 +01:00
parent ca933fcf1d
commit 5593bf2fee
4 changed files with 14 additions and 11 deletions

View File

@@ -587,7 +587,7 @@ EVENTVALIDATION_REGEX = r'(?i)(?P<name>__EVENTVALIDATION[^"]*)[^>]+value="(?P<re
LIMITED_ROWS_TEST_NUMBER = 15
# Format used for representing invalid unicode characters
INVALID_UNICODE_CHAR_FORMAT = r"\?%02x"
INVALID_UNICODE_CHAR_FORMAT = r"\x%02x"
# Regular expression for XML POST data
XML_RECOGNITION_REGEX = r"(?s)\A\s*<[^>]+>(.+>)?\s*\Z"