mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Make MULTIPART_PART_HEADERS accessible to lua
This commit is contained in:
parent
85c8760774
commit
f812a3d725
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
|||||||
v3.x.y - YYYY-MMM-DD (to be released)
|
v3.x.y - YYYY-MMM-DD (to be released)
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
- Make MULTIPART_PART_HEADERS accessible to lua
|
||||||
|
[Issue #2916 - @martinhsv]
|
||||||
- Fix: Lua scripts cannot read whole collection at once
|
- Fix: Lua scripts cannot read whole collection at once
|
||||||
[Issue #2900 - @udi-aharon, @airween, @martinhsv]
|
[Issue #2900 - @udi-aharon, @airween, @martinhsv]
|
||||||
- Fix: quoted Include config with wildcard
|
- Fix: quoted Include config with wildcard
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* ModSecurity, http://www.modsecurity.org/
|
* ModSecurity, http://www.modsecurity.org/
|
||||||
* Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
|
* Copyright (c) 2015 - 2023 Trustwave Holdings, Inc. (http://www.trustwave.com/)
|
||||||
*
|
*
|
||||||
* You may not use this file except in compliance with
|
* You may not use this file except in compliance with
|
||||||
* the License. You may obtain a copy of the License at
|
* the License. You may obtain a copy of the License at
|
||||||
@ -231,6 +231,8 @@ class VariableMonkeyResolution {
|
|||||||
anchoredSetVariable = &t->m_variableGeo;
|
anchoredSetVariable = &t->m_variableGeo;
|
||||||
} else if (comp(col, "REQUEST_COOKIES_NAMES")) {
|
} else if (comp(col, "REQUEST_COOKIES_NAMES")) {
|
||||||
anchoredSetVariable = &t->m_variableRequestCookiesNames;
|
anchoredSetVariable = &t->m_variableRequestCookiesNames;
|
||||||
|
} else if (comp(col, "MULTIPART_PART_HEADERS")) {
|
||||||
|
anchoredSetVariable = &t->m_variableMultipartPartHeaders;
|
||||||
} else if (comp(col, "FILES_TMPNAMES")) {
|
} else if (comp(col, "FILES_TMPNAMES")) {
|
||||||
anchoredSetVariable = &t->m_variableFilesTmpNames;
|
anchoredSetVariable = &t->m_variableFilesTmpNames;
|
||||||
}
|
}
|
||||||
@ -553,6 +555,8 @@ class VariableMonkeyResolution {
|
|||||||
vv = t->m_variableRequestCookiesNames.resolveFirst(var);
|
vv = t->m_variableRequestCookiesNames.resolveFirst(var);
|
||||||
} else if (comp(col, "FILES_TMPNAMES")) {
|
} else if (comp(col, "FILES_TMPNAMES")) {
|
||||||
vv = t->m_variableFilesTmpNames.resolveFirst(var);
|
vv = t->m_variableFilesTmpNames.resolveFirst(var);
|
||||||
|
} else if (comp(col, "MULTIPART_PART_HEADERS")) {
|
||||||
|
vv = t->m_variableMultipartPartHeaders.resolveFirst(var);
|
||||||
} else if (comp(col, "TX")) {
|
} else if (comp(col, "TX")) {
|
||||||
vv = t->m_collections.m_tx_collection->resolveFirst(var);
|
vv = t->m_collections.m_tx_collection->resolveFirst(var);
|
||||||
} else if (comp(col, "RESOURCE")) {
|
} else if (comp(col, "RESOURCE")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user