mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Having a copy of m_httpVersion and m_uri instead of a pointer reference
This commit is contained in:
parent
5b52190f97
commit
1f70e3f7e4
@ -351,7 +351,7 @@ class Transaction : public TransactionAnchoredVariables {
|
|||||||
/**
|
/**
|
||||||
* Holds the HTTP version: 1.2, 2.0, 3.0 and so on....
|
* Holds the HTTP version: 1.2, 2.0, 3.0 and so on....
|
||||||
*/
|
*/
|
||||||
const char *m_httpVersion;
|
std::string m_httpVersion;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the server IP Address
|
* Holds the server IP Address
|
||||||
@ -361,7 +361,7 @@ class Transaction : public TransactionAnchoredVariables {
|
|||||||
/**
|
/**
|
||||||
* Holds the raw URI that was requested.
|
* Holds the raw URI that was requested.
|
||||||
*/
|
*/
|
||||||
const char *m_uri;
|
std::string m_uri;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the URI that was requests (without the query string).
|
* Holds the URI that was requests (without the query string).
|
||||||
|
@ -1548,8 +1548,8 @@ std::string Transaction::toJSON(int parts) {
|
|||||||
utils::string::dash_if_empty(
|
utils::string::dash_if_empty(
|
||||||
m_variableRequestMethod.evaluate()).c_str());
|
m_variableRequestMethod.evaluate()).c_str());
|
||||||
|
|
||||||
LOGFY_ADD_INT("http_version", m_httpVersion);
|
LOGFY_ADD_INT("http_version", m_httpVersion.c_str());
|
||||||
LOGFY_ADD("uri", this->m_uri);
|
LOGFY_ADD("uri", this->m_uri.c_str());
|
||||||
|
|
||||||
if (parts & audit_log::AuditLog::CAuditLogPart) {
|
if (parts & audit_log::AuditLog::CAuditLogPart) {
|
||||||
// FIXME: check for the binary content size.
|
// FIXME: check for the binary content size.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user