mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Adds support for the @inspectFile operator
This commit is contained in:
@@ -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 ¶m, std::string *error) override;
|
||||
bool evaluate(Transaction *transaction, const std::string &str) override;
|
||||
private:
|
||||
std::string m_file;
|
||||
};
|
||||
|
||||
} // namespace operators
|
||||
|
Reference in New Issue
Block a user