mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
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.
This commit is contained in:
parent
8360aacc22
commit
2657154eaa
@ -3404,7 +3404,9 @@ SecRule <emphasis>XML:/xq:employees/employee/name/text()</emphasis> Fred \
|
|||||||
<section>
|
<section>
|
||||||
<title><literal>md5</literal></title>
|
<title><literal>md5</literal></title>
|
||||||
|
|
||||||
<para>This function calculates an MD5 hash from input.</para>
|
<para>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).</para>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
@ -3493,7 +3495,9 @@ SecRule <emphasis>XML:/xq:employees/employee/name/text()</emphasis> Fred \
|
|||||||
<section>
|
<section>
|
||||||
<title><literal>sha1</literal></title>
|
<title><literal>sha1</literal></title>
|
||||||
|
|
||||||
<para>This function calculates a SHA1 hash from input.</para>
|
<para>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).</para>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
@ -4636,7 +4640,7 @@ SecRule &REQUEST_HEADERS:Accept "@eq 0" \
|
|||||||
|
|
||||||
<programlisting format="linespecific">SecDefaultAction log,deny,phase:1,t:removeNulls,t:lowercase
|
<programlisting format="linespecific">SecDefaultAction log,deny,phase:1,t:removeNulls,t:lowercase
|
||||||
SecRule REQUEST_COOKIES:SESSIONID "47414e81cbbef3cf8366e84eeacba091" \
|
SecRule REQUEST_COOKIES:SESSIONID "47414e81cbbef3cf8366e84eeacba091" \
|
||||||
log,deny,status:403,<emphasis>t:md5</emphasis></programlisting>
|
log,deny,status:403,<emphasis>t:md5,t:hexEncode</emphasis></programlisting>
|
||||||
|
|
||||||
<para><emphasis>Note</emphasis></para>
|
<para><emphasis>Note</emphasis></para>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user