From 2657154eaa156d66a1fdc032d67ac06030e386e3 Mon Sep 17 00:00:00 2001 From: brectanus Date: Tue, 18 Dec 2007 22:50:01 +0000 Subject: [PATCH] Update docs for t:md5 and t:sha1 to note that they are in binary form and should be hex encoded to be human readable. --- doc/modsecurity2-apache-reference.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/modsecurity2-apache-reference.xml b/doc/modsecurity2-apache-reference.xml index 37026a1d..2538bf7b 100644 --- a/doc/modsecurity2-apache-reference.xml +++ b/doc/modsecurity2-apache-reference.xml @@ -3404,7 +3404,9 @@ SecRule XML:/xq:employees/employee/name/text() Fred \
<literal>md5</literal> - This function calculates an MD5 hash from input. + This function calculates an MD5 hash from input. Note that + the computed hash is in a raw binary form and should be hex encoded + to be human readable (t:md5,t:hexEncode).
@@ -3493,7 +3495,9 @@ SecRule XML:/xq:employees/employee/name/text() Fred \
<literal>sha1</literal> - This function calculates a SHA1 hash from input. + This function calculates a SHA1 hash from input. Note that + the computed hash is in a raw binary form and should be hex encoded + to be human readable (t:sha1,t:hexEncode).
@@ -4636,7 +4640,7 @@ SecRule &REQUEST_HEADERS:Accept "@eq 0" \ SecDefaultAction log,deny,phase:1,t:removeNulls,t:lowercase SecRule REQUEST_COOKIES:SESSIONID "47414e81cbbef3cf8366e84eeacba091" \ - log,deny,status:403,t:md5 + log,deny,status:403,t:md5,t:hexEncode Note @@ -5209,4 +5213,4 @@ SecRule REQUEST_METHOD "!@within %{tx.allowed_methods}" t:l
- \ No newline at end of file +