Add missing feature: t:uppercase transformation

This commit is contained in:
Victor Hora
2017-06-02 02:05:08 -04:00
committed by Felipe Zimmerle
parent 9d70345d3d
commit 37868d1534
9 changed files with 5729 additions and 5571 deletions

View File

@@ -67,6 +67,7 @@ class Driver;
#include "src/actions/transformations/none.h"
#include "src/actions/transformations/url_decode.h"
#include "src/actions/transformations/lower_case.h"
#include "src/actions/transformations/upper_case.h"
#include "src/actions/transformations/hex_decode.h"
#include "src/actions/transformations/url_encode.h"
#include "src/actions/transformations/js_decode.h"
@@ -519,6 +520,7 @@ using modsecurity::operators::Operator;
ACTION_TRANSFORMATION_SHA1 "ACTION_TRANSFORMATION_SHA1"
ACTION_TRANSFORMATION_SQL_HEX_DECODE "ACTION_TRANSFORMATION_SQL_HEX_DECODE"
ACTION_TRANSFORMATION_TRIM "ACTION_TRANSFORMATION_TRIM"
ACTION_TRANSFORMATION_UPPERCASE "ACTION_TRANSFORMATION_UPPERCASE"
ACTION_TRANSFORMATION_URL_DECODE "ACTION_TRANSFORMATION_URL_DECODE"
ACTION_TRANSFORMATION_URL_DECODE_UNI "ACTION_TRANSFORMATION_URL_DECODE_UNI"
ACTION_TRANSFORMATION_UTF8_TO_UNICODE "ACTION_TRANSFORMATION_UTF8_TO_UNICODE"
@@ -2278,6 +2280,10 @@ act:
{
ACTION_CONTAINER($$, new actions::transformations::LowerCase($1));
}
| ACTION_TRANSFORMATION_UPPERCASE
{
ACTION_CONTAINER($$, new actions::transformations::UpperCase($1));
}
| ACTION_TRANSFORMATION_URL_DECODE_UNI
{
ACTION_CONTAINER($$, new actions::transformations::UrlDecodeUni($1));