mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
parser: Reporting the right column position in case of error
This commit is contained in:
@@ -172,7 +172,7 @@ void Driver::error(const yy::location& l, const std::string& m,
|
||||
parserError << "File: " << ref.back() << ". ";
|
||||
}
|
||||
parserError << "Line: " << l.end.line << ". ";
|
||||
parserError << "Column: " << l.end.column << ". ";
|
||||
parserError << "Column: " << l.end.column - 1 << ". ";
|
||||
}
|
||||
|
||||
if (m.empty() == false) {
|
||||
|
Reference in New Issue
Block a user