mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Fix compilation issue while xml is disabled
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
namespace modsecurity {
|
||||
namespace operators {
|
||||
|
||||
#ifdef WITH_LIBXML2
|
||||
|
||||
bool ValidateSchema::init(const std::string &file, std::string *error) {
|
||||
std::string err;
|
||||
m_resource = utils::find_resource(m_param, file, &err);
|
||||
@@ -146,6 +148,7 @@ bool ValidateSchema::evaluate(Transaction *t,
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace operators
|
||||
} // namespace modsecurity
|
||||
|
Reference in New Issue
Block a user