mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 18:05:28 +03:00
Refactoring: Makes transformations to work with new execute signature
This commit is contained in:
@@ -32,11 +32,12 @@ namespace actions {
|
||||
namespace transformations {
|
||||
|
||||
|
||||
std::string Base64Encode::execute(const std::string &value,
|
||||
Transaction *transaction) {
|
||||
std::string ret = Utils::Base64::encode(value);
|
||||
|
||||
return ret;
|
||||
void Base64Encode::execute(Transaction *t,
|
||||
ModSecStackString &in,
|
||||
ModSecStackString &out) {
|
||||
std::string ret = Utils::Base64::encode(
|
||||
std::string(in.c_str(), in.size()));
|
||||
out.assign(ret.c_str(), ret.size());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user