refactoring: Moves Phases enum to outside ModSecurity class

This commit is contained in:
Felipe Zimmerle
2016-10-07 19:05:50 -03:00
parent c680ddf2cd
commit b48e4b3a37
14 changed files with 198 additions and 165 deletions

View File

@@ -420,7 +420,8 @@ audit_log:
}
| CONFIG_UPLOAD_DIR
{
driver.m_uploadDirectory = $1;
driver.m_uploadDirectory.m_set = true;
driver.m_uploadDirectory.m_value = $1;
}
| CONFIG_UPDLOAD_SAVE_TMP_FILES CONFIG_VALUE_ON
{
@@ -560,7 +561,7 @@ expression:
}
}
if (definedPhase == -1) {
definedPhase = modsecurity::ModSecurity::Phases::RequestHeadersPhase;
definedPhase = modsecurity::Phases::RequestHeadersPhase;
}
if (!driver.defaultActions[definedPhase].empty()) {