Escaped filename, which can contain invalid xml (#1192)

This commit is contained in:
rebnridgway 2018-04-25 17:28:04 +01:00 committed by Daniel Marjamäki
parent e95c6e3038
commit faf348306b
1 changed files with 1 additions and 1 deletions

View File

@ -818,7 +818,7 @@ void Preprocessor::dump(std::ostream &out) const
for (std::list<Directive>::const_iterator it = directives.begin(); it != directives.end(); ++it) {
out << " <directive "
<< "file=\"" << it->file << "\" "
<< "file=\"" << ErrorLogger::toxml(it->file) << "\" "
<< "linenr=\"" << it->linenr << "\" "
// str might contain characters such as '"', '<' or '>' which
// could result in invalid XML, so run it through toxml().