Fix username underscores in debug. Fixes #143

This commit is contained in:
bloodshot 2020-04-09 15:22:11 -04:00
parent b69255db4b
commit 9df1cbc7f9
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ public class GDDebugData {
}
public void addRecord(String flag, String trust, String source, String target, String location, String user, String permission, Tristate result) {
// markdown uses '__' for strong formatting, so underscores must be escaped
user = user.replace("_", "\\_");
if (this.records.size() < MAX_LINES) {
this.records.add("| " + flag + " | " + trust + " | " + source + " | " + target + " | " + location + " | " + user + " | " + permission + " | " + result + " | ");
} else {