mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Accept new line + caridge return in the rules parser
This commit is contained in:
parent
578dabea8b
commit
71acdaf8c5
@ -455,6 +455,7 @@ CONFIG_DIR_UNICODE_MAP_FILE (?i:SecUnicodeMapFile)
|
||||
#[ \t]*SecRule[^\\].*\\[ \t]*[\r\n]* { driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(COMMENT); }
|
||||
#[ \t]*SecAction[^\\].*\\[ \t]*[^\\n] { driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(COMMENT); }
|
||||
#.* { driver.loc.back()->step(); /* comment, just ignore. */ }
|
||||
\r { driver.loc.back()->step(); /* carriage return, just ignore. */}
|
||||
. { driver.error (*driver.loc.back(), "invalid character", yytext); throw yy::seclang_parser::syntax_error(*driver.loc.back(), ""); }
|
||||
<<EOF>> {
|
||||
if (driver.ref.size() > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user