mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-13 15:07:10 +03:00
Added macro expansion for append/prepend action.
This commit is contained in:
@@ -4270,6 +4270,12 @@ SecAction phase:3,allow</programlisting>
|
||||
<para>Example:</para>
|
||||
|
||||
<programlisting>SecRule RESPONSE_CONTENT_TYPE "^text/html" "nolog,pass,<emphasis>append:'<hr>Footer'</emphasis>"</programlisting>
|
||||
|
||||
<note>
|
||||
<para>While macro expansion is allowed in the additional content,
|
||||
you are strongly cautioned against inserting user defined data
|
||||
fields.</para>
|
||||
</note>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
@@ -4923,6 +4929,12 @@ SecRule REQUEST_HEADERS:User-Agent "Test" log,deny,status:403</programlisting>
|
||||
<para>Example:</para>
|
||||
|
||||
<programlisting>SecRule RESPONSE_CONTENT_TYPE ^text/html "phase:3,nolog,pass,<emphasis>prepend:'Header<br>'</emphasis>"</programlisting>
|
||||
|
||||
<note>
|
||||
<para>While macro expansion is allowed in the additional content,
|
||||
you are strongly cautioned against inserting user defined data
|
||||
fields.</para>
|
||||
</note>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
||||
Reference in New Issue
Block a user