Commit aa84aa5d authored by Albert Vaca Cintora's avatar Albert Vaca Cintora
Browse files

Do not leak the local user in the device name.

Thanks Matthias Gerstner <> for reporting this.
parent 7b904f47
......@@ -58,12 +58,7 @@ static QString getDefaultDeviceName() {
#ifdef Q_OS_WIN
QString username = QString::fromLatin1(qgetenv("USERNAME"));
QString username = QString::fromLatin1(qgetenv("USER"));
return username + QStringLiteral("@") + QHostInfo::localHostName();
return QHostInfo::localHostName();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment