Skip to content

Commit 6f93563

Browse files
committed
Fix in parser: now understanding the removeCommentsChar transformation
#1098
1 parent 1913745 commit 6f93563

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/actions/transformations/transformation.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Transformation* Transformation::instantiate(std::string a) {
9595
IF_MATCH(parity_even_7bit) { return new ParityEven7bit(a); }
9696
IF_MATCH(parity_odd_7bit) { return new ParityOdd7bit(a); }
9797
IF_MATCH(parity_zero_7bit) { return new ParityZero7bit(a); }
98-
IF_MATCH(remove_comments_char) { return new RemoveCommentsChar(a); }
98+
IF_MATCH(removeCommentsChar) { return new RemoveCommentsChar(a); }
9999
IF_MATCH(remove_comments) { return new RemoveComments(a); }
100100
IF_MATCH(removeNulls) { return new RemoveNulls(a); }
101101
IF_MATCH(remove_whitespace) { return new RemoveWhitespace(a); }

src/parser/seclang-scanner.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ OPERATOR (?i:(?:@inspectFile|@fuzzyHash|@validateByteRange|@validateDTD|@
113113
OPERATORNOARG (?i:@detectSQLi|@detectXSS|@validateUrlEncoding|@validateUtf8Encoding)
114114
OPERATOR_GEOIP (?i:@geoLookup)
115115

116-
TRANSFORMATION t:(?i:(cmdLine|sha1|hexEncode|lowercase|urlDecodeUni|urlDecode|none|compressWhitespace|removeWhitespace|replaceNulls|removeNulls|htmlEntityDecode|jsDecode|cssDecode|trim|normalizePathWin|normalisePathWin|normalisePath|length|utf8toUnicode|urldecode|removeComments|replaceComments))
116+
TRANSFORMATION t:(?i:(cmdLine|sha1|hexEncode|lowercase|urlDecodeUni|urlDecode|none|compressWhitespace|removeWhitespace|replaceNulls|removeNulls|htmlEntityDecode|jsDecode|cssDecode|trim|normalizePathWin|normalisePathWin|normalisePath|length|utf8toUnicode|urldecode|removeCommentsChar|removeComments|replaceComments))
117117

118118

119119
VARIABLE (?i:(RESOURCE|ARGS_COMBINED_SIZE|ARGS_GET_NAMES|ARGS_POST_NAMES|FILES_COMBINED_SIZE|FULL_REQUEST_LENGTH|REQUEST_BODY_LENGTH|REQUEST_URI_RAW|UNIQUE_ID|SERVER_PORT|SERVER_ADDR|REMOTE_PORT|REMOTE_HOST|MULTIPART_STRICT_ERROR|PATH_INFO|MULTIPART_CRLF_LF_LINES|MATCHED_VAR_NAME|MATCHED_VAR|INBOUND_DATA_ERROR|OUTBOUND_DATA_ERROR|FULL_REQUEST|AUTH_TYPE|ARGS_NAMES|REMOTE_ADDR|REQUEST_BASENAME|REQUEST_BODY|REQUEST_FILENAME|REQUEST_HEADERS_NAMES|REQUEST_METHOD|REQUEST_PROTOCOL|REQUEST_URI|RESPONSE_BODY|RESPONSE_CONTENT_LENGTH|RESPONSE_CONTENT_TYPE|RESPONSE_HEADERS_NAMES|RESPONSE_PROTOCOL|RESPONSE_STATUS|REQBODY_PROCESSOR))

0 commit comments

Comments
 (0)