mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Adds support to the SERVER_NAME variable
This commit is contained in:
@@ -522,6 +522,11 @@ int Transaction::addRequestHeader(const std::string& key,
|
||||
m_collections.store("REQBODY_PROCESSOR", "URLENCODED");
|
||||
}
|
||||
}
|
||||
|
||||
if (keyl == "host") {
|
||||
std::vector<std::string> host = split(value, ':');
|
||||
m_collections.store("SERVER_NAME", host[0]);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user