mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-16 08:27:10 +03:00
Using RunTimeString on setvar action
This commit is contained in:
@@ -39,7 +39,7 @@ Variable::Variable(std::string name)
|
||||
std::string name = std::string(m_name, m_name.find(":") + 1,
|
||||
m_name.size());
|
||||
if (col == "TX" || col == "IP" || col == "GLOBAL"
|
||||
|| col == "RESOURCE" || col == "SESSION") {
|
||||
|| col == "RESOURCE" || col == "SESSION" || col == "USER") {
|
||||
m_collectionName = col;
|
||||
}
|
||||
if ((name.at(0) == '\\') || (name.at(0) == '/')) {
|
||||
@@ -66,6 +66,9 @@ Variable::Variable(std::string name)
|
||||
} else if (utils::string::tolower(m_name) == "session") {
|
||||
m_collectionName = "SESSION";
|
||||
m_type = MultipleMatches;
|
||||
} else if (utils::string::tolower(m_name) == "user") {
|
||||
m_collectionName = "USER";
|
||||
m_type = MultipleMatches;
|
||||
} else if (m_name.find(".") != std::string::npos) {
|
||||
m_kind = CollectionVarible;
|
||||
m_collectionName = std::string(m_name, 0, m_name.find("."));
|
||||
|
||||
Reference in New Issue
Block a user