if(ClientReq->header_norm && session->server_conf->normalize_headers)
{
session->norm_flags &= ~HI_BODY;
+ // FIXIT-M the usefulness of this one size fits all normalization is questionable.
+ // A specific issue is that a header such as "Referer: http://www.foo.com/home" will trigger multislash
+ // normalization and alert.
iRet = hi_norm_uri(session, HeaderBuf, &iHeaderBufSize,
RawHeaderBuf, iRawHeaderBufSize, &encodeType);
if (iRet == HI_NONFATAL_ERR)
char extract_gzip;
unsigned long file_decomp_modes;
-/* NOTE: The XFF_BUILTING_NAMES value must match the code in snort_httpinspect.c that
- adds the builtin names to the list. */
#define HI_UI_CONFIG_XFF_FIELD_NAME "X-Forwarded-For"
#define HI_UI_CONFIG_TCI_FIELD_NAME "True-Client-IP"
#define XFF_BUILTIN_NAMES (2)