sponge: Add username underscore debug fix.

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

View File

@ -103,6 +103,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 {