mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Override the default status code if not suitable to redirect action
Issue #1850
This commit is contained in:
parent
bfe917b6b1
commit
e1e8a01ed2
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
|||||||
v3.0.3 - YYYY-MMM-DD (to be released)
|
v3.0.3 - YYYY-MMM-DD (to be released)
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
- Override the default status code if not suitable to redirect action
|
||||||
|
[Issue #1850 - @zimmerle, @victorhora]
|
||||||
- parser: Fix the support for CRLF configuration files
|
- parser: Fix the support for CRLF configuration files
|
||||||
[Issue #1945 - @zimmerle, @defanator, @kjakub]
|
[Issue #1945 - @zimmerle, @defanator, @kjakub]
|
||||||
- Organizes the server logs
|
- Organizes the server logs
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 54e9a6ec017c687c8fad1f347a263a7b259f8525
|
Subproject commit bf234eb2f385b969c4f803b35fda53cffdd93922
|
@ -38,7 +38,8 @@ bool Redirect::evaluate(Rule *rule, Transaction *transaction,
|
|||||||
std::shared_ptr<RuleMessage> rm) {
|
std::shared_ptr<RuleMessage> rm) {
|
||||||
std::string m_urlExpanded(m_string->evaluate(transaction));
|
std::string m_urlExpanded(m_string->evaluate(transaction));
|
||||||
/* if it was changed before, lets keep it. */
|
/* if it was changed before, lets keep it. */
|
||||||
if (transaction->m_it.status == 200) {
|
if (transaction->m_it.status == 200
|
||||||
|
|| (!(transaction->m_it.status <= 307 && transaction->m_it.status >= 301))) {
|
||||||
transaction->m_it.status = m_status;
|
transaction->m_it.status = m_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit a9c58a25771493ac2abadffbfd5dce1213d5db93
|
Subproject commit e6b03e46046ce9ce6dcfc0e6ad0820194e21db35
|
Loading…
x
Reference in New Issue
Block a user