Adds t:none transformation

This commit is contained in:
Felipe Zimmerle
2015-08-05 23:53:53 -03:00
parent 522f195aa0
commit 4308ee0280
4 changed files with 148 additions and 17 deletions

View File

@@ -30,20 +30,13 @@ namespace ModSecurity {
namespace actions {
namespace transformations {
None::None(std::string action)
: Transformation(action) {
this->action_kind = 1;
}
std::string None::evaluate(std::string value,
Assay *assay) {
/**
* @todo Implement the transformation None
*/
assay->debug(4, "Transformation None is not implemented yet.");
return value;
}
} // namespace transformations
} // namespace actions
} // namespace ModSecurity

View File

@@ -30,7 +30,9 @@ namespace transformations {
class None : public Transformation {
public:
explicit None(std::string action);
explicit None(std::string action)
: Transformation(action) { }
std::string evaluate(std::string exp,
Assay *assay) override;
};