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