Adds support for the @inspectFile operator

This commit is contained in:
Felipe Zimmerle
2017-10-31 09:42:06 -03:00
parent 1189e9b0ef
commit 1866a3a9eb
7 changed files with 897 additions and 724 deletions

View File

@@ -28,11 +28,16 @@ class InspectFile : public Operator {
public:
/** @ingroup ModSecurity_Operator */
InspectFile(std::string o, std::string p, bool n)
: Operator(o, p, n) { }
: Operator(o, p, n),
m_file("") { }
explicit InspectFile(std::string param)
: Operator("InspectFile", param) { }
: Operator("InspectFile", param),
m_file("") { }
bool init(const std::string &param, std::string *error) override;
bool evaluate(Transaction *transaction, const std::string &str) override;
private:
std::string m_file;
};
} // namespace operators