mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Override the default status code if not suitable to redirect action
Issue #1850
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,6 +1,8 @@
|
||||
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
|
||||
[Issue #1945 - @zimmerle, @defanator, @kjakub]
|
||||
- Organizes the server logs
|
||||
|
Submodule others/libinjection updated: 54e9a6ec01...bf234eb2f3
@@ -38,7 +38,8 @@ bool Redirect::evaluate(Rule *rule, Transaction *transaction,
|
||||
std::shared_ptr<RuleMessage> rm) {
|
||||
std::string m_urlExpanded(m_string->evaluate(transaction));
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user