Adds support to base64 encode transformation

This commit is contained in:
Felipe Zimmerle
2016-05-24 10:12:51 -03:00
parent bb5cbc969f
commit 056753d57a
4 changed files with 93 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
#include "actions/action.h"
#include "actions/transformations/base64_decode_ext.h"
#include "actions/transformations/base64_decode.h"
#include "actions/transformations/base64_encode.h"
#include "actions/transformations/cmd_line.h"
#include "actions/transformations/compress_whitespace.h"
#include "actions/transformations/css_decode.h"
@@ -75,6 +76,7 @@ std::string Transformation::evaluate(std::string value,
Transformation* Transformation::instantiate(std::string a) {
IF_MATCH(base64_decode_ext) { return new Base64DecodeExt(a); }
IF_MATCH(base64Decode) { return new Base64Decode(a); }
IF_MATCH(base64Encode) { return new Base64Encode(a); }
IF_MATCH(cmd_line) { return new CmdLine(a); }
IF_MATCH(compress_whitespace) { return new CompressWhitespace(a); }
IF_MATCH(cssDecode) { return new CssDecode(a); }