mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Adds operator @pmFromFile and @pmF
This commit is contained in:
@@ -18,19 +18,21 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "operators/operator.h"
|
||||
#include "operators/pm_from_file.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
namespace ModSecurity {
|
||||
namespace operators {
|
||||
|
||||
class PmF : public Operator {
|
||||
|
||||
class PmF : public PmFromFile {
|
||||
public:
|
||||
/** @ingroup ModSecurity_Operator */
|
||||
PmF(std::string o, std::string p, bool i);
|
||||
bool evaluate(Assay *assay);
|
||||
PmF(std::string op, std::string param, bool negation)
|
||||
: PmFromFile(op, param, negation) { }
|
||||
};
|
||||
|
||||
|
||||
} // namespace operators
|
||||
} // namespace ModSecurity
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user