mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-19 10:44:25 +03:00
Adds checks for the NO_LOGS definition and improved the vars resolution time
This commit is contained in:
@@ -41,7 +41,9 @@ std::string Base64Decode::evaluate(std::string value,
|
||||
* @todo Implement the transformation base64decode
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation 64 is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,8 +41,10 @@ std::string Base64DecodeExt::evaluate(std::string value,
|
||||
* @todo Implement the transformation Base64DecodeExt
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation Base64DecodeExt is" \
|
||||
" not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,9 @@ std::string CmdLine::evaluate(std::string value,
|
||||
* @todo Implement the transformation CmdLine
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation CmdLine is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,8 +41,10 @@ std::string CompressWhitespace::evaluate(std::string value,
|
||||
* @todo Implement the transformation CompressWhitespace
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation CompressWhitespace is " \
|
||||
"not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,8 +41,10 @@ std::string EscapeSeqDecode::evaluate(std::string value,
|
||||
* @todo Implement the transformation EscapeSeqDecode
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation EscapeSeqDecode is " \
|
||||
"not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,9 @@ std::string HexDecode::evaluate(std::string value,
|
||||
* @todo Implement the transformation HexDecode
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation HexDecode is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,9 @@ std::string HexEncode::evaluate(std::string value,
|
||||
* @todo Implement the transformation HexEncode
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation HexEncode is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,9 @@ std::string Length::evaluate(std::string value,
|
||||
* @todo Implement the transformation Length
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation Length is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,9 @@ std::string Md5::evaluate(std::string value,
|
||||
* @todo Implement the transformation Md5
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation Md5 is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,8 +41,10 @@ std::string NormalisePath::evaluate(std::string value,
|
||||
* @todo Implement the transformation NormalisePath
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation NormalisePath is not" \
|
||||
" implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,8 +41,10 @@ std::string ParityEven7bit::evaluate(std::string value,
|
||||
* @todo Implement the transformation ParityEven7bit
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation ParityEven7bit is not" \
|
||||
" implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,8 +41,10 @@ std::string ParityOdd7bit::evaluate(std::string value,
|
||||
* @todo Implement the transformation ParityOdd7bit
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation ParityOdd7bit is not " \
|
||||
"implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,8 +41,10 @@ std::string ParityZero7bit::evaluate(std::string value,
|
||||
* @todo Implement the transformation ParityZero7bit
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation ParityZero7bit is not" \
|
||||
"implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,8 +41,10 @@ std::string RemoveComments::evaluate(std::string value,
|
||||
* @todo Implement the transformation RemoveComments
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation RemoveComments is not " \
|
||||
"implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,8 +41,10 @@ std::string RemoveCommentsChar::evaluate(std::string value,
|
||||
* @todo Implement the transformation RemoveCommentsChar
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation RemoveCommentsChar " \
|
||||
"is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,8 +41,10 @@ std::string RemoveWhitespace::evaluate(std::string value,
|
||||
* @todo Implement the transformation RemoveWhitespace
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation RemoveWhitespace is " \
|
||||
"not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,8 +41,10 @@ std::string ReplaceComments::evaluate(std::string value,
|
||||
* @todo Implement the transformation ReplaceComments
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation ReplaceComments " \
|
||||
"is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,9 @@ std::string ReplaceNulls::evaluate(std::string value,
|
||||
* @todo Implement the transformation ReplaceNulls
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation ReplaceNulls is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,9 @@ std::string Sha1::evaluate(std::string value,
|
||||
* @todo Implement the transformation Sha1
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation Sha1 is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,9 @@ std::string SqlHexDecode::evaluate(std::string value,
|
||||
* @todo Implement the transformation SqlHexDecode
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation SqlHexDecode is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,9 @@ std::string UrlDecode::evaluate(std::string value,
|
||||
* @todo Implement the transformation UrlDecode
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation UrlDecode is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,9 @@ std::string UrlEncode::evaluate(std::string value,
|
||||
* @todo Implement the transformation UrlEncode
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation UrlEncode is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,9 @@ std::string Utf8Unicode::evaluate(std::string value,
|
||||
* @todo Implement the transformation Utf8Unicode
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation Utf8Unicode is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user