Skip to content

Commit

Permalink
More error message sanitization.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfellows committed Jul 29, 2024
1 parent e0a106d commit 646f7ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/moja.modules.cbm/src/flatrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ namespace cbm {
if (csvFormat) {
boost::replace_all(errorStr, "\"", "'");
} else {
boost::replace_all(errorStr, "'", "''");
boost::replace_all(errorStr, "&", "\\&");
boost::replace_all(errorStr, "'", "\\'");
}

return (boost::format(csvFormat ? csvRecord : dbRecord)
Expand Down

0 comments on commit 646f7ff

Please sign in to comment.