mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fix on top of jmx's m.setvar commit for USER collection in Lua scripts
This commit is contained in:
parent
45cdb0ed90
commit
6f458b5203
@ -399,7 +399,13 @@ int Lua::setvar(lua_State *L) {
|
|||||||
t->m_rules->m_secWebAppId.m_value,
|
t->m_rules->m_secWebAppId.m_value,
|
||||||
var_value);
|
var_value);
|
||||||
}
|
}
|
||||||
|
else if (collection == "USER") {
|
||||||
|
t->m_collections.m_user_collection->storeOrUpdateFirst(
|
||||||
|
variableName, t->m_collections.m_user_collection_key,
|
||||||
|
t->m_rules->m_secWebAppId.m_value,
|
||||||
|
var_value);
|
||||||
|
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user