diff --git a/lib/core/settings.py b/lib/core/settings.py index 45b328280..409e5d11f 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -233,6 +233,9 @@ EMPTY_FORM_FIELDS_REGEX = r'(?P[^=]+=(&|\Z))' # Regular expression for general IP address matching GENERAL_IP_ADDRESS_REGEX = r'\A\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\Z' +# Regular expression for soap message recognition +SOAP_REGEX = r"\A(<\?xml[^>]+>)?\s*]*>", conf.data, re.I | re.M): + if re.match(SOAP_REGEX, conf.data, re.I | re.M): place = PLACE.SOAP else: place = PLACE.POST