Skip to content

Commit

Permalink
escape backslashes in replay text values
Browse files Browse the repository at this point in the history
  • Loading branch information
Voidious committed Oct 12, 2015
1 parent 288ecfa commit 89ee275
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion replaybuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,8 @@ std::string ReplayBuilder::htmlTitle() {
}

std::string ReplayBuilder::escapeString(std::string s) {
findReplace(s, ':', "\\\\:");
findReplace(s, ':', "\\:");
findReplace(s, '\\', "\\\\");
findReplace(s, '\'', "\\'");
findReplace(s, '\n', "\\n");
findReplace(s, '\r', "\\n");
Expand Down

0 comments on commit 89ee275

Please sign in to comment.