mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +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 << "File: " << ref.back() << ". ";
|
||||||
}
|
}
|
||||||
parserError << "Line: " << l.end.line << ". ";
|
parserError << "Line: " << l.end.line << ". ";
|
||||||
parserError << "Column: " << l.end.column << ". ";
|
parserError << "Column: " << l.end.column - 1 << ". ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m.empty() == false) {
|
if (m.empty() == false) {
|
||||||
|
Reference in New Issue
Block a user