mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 01:51:52 +03:00
Refactoring: Makes transformations to work with new execute signature
This commit is contained in:
@@ -30,10 +30,12 @@ namespace transformations {
|
||||
|
||||
class UrlEncode : public Transformation {
|
||||
public:
|
||||
explicit UrlEncode(const std::string &action) ;
|
||||
explicit UrlEncode(const std::string &action)
|
||||
: Transformation(action) { };
|
||||
|
||||
std::string execute(const std::string &exp,
|
||||
Transaction *transaction) override;
|
||||
void execute(Transaction *t,
|
||||
ModSecStackString &in,
|
||||
ModSecStackString &out) override;
|
||||
|
||||
static std::string url_enc(const char *input,
|
||||
unsigned int input_len, int *changed);
|
||||
|
||||
Reference in New Issue
Block a user