Skip to content

Commit 3b5aeeb

Browse files
Merge pull request ModOrganizer2#1661 from LostDragonist/censor
Hopefully restrict username censoring to directories
2 parents 1929e5e + 21487ad commit 3b5aeeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/loglist.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ void initLogging()
359359
log::getDefault().setCallback(
360360
[](log::Entry e){ LogModel::instance().add(e); });
361361

362-
log::getDefault().addToBlacklist(getenv("USERNAME"), "USERNAME");
362+
log::getDefault().addToBlacklist(std::string("\\") + getenv("USERNAME"), "\\USERNAME");
363+
log::getDefault().addToBlacklist(std::string("/") + getenv("USERNAME"), "/USERNAME");
363364

364365
qInstallMessageHandler(qtLogCallback);
365366
}

0 commit comments

Comments
 (0)