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 <mgerstner@suse.de> for reporting this.
parent 7b904f47
......@@ -58,12 +58,7 @@ static QString getDefaultDeviceName() {
}
#endif
#ifdef Q_OS_WIN
QString username = QString::fromLatin1(qgetenv("USERNAME"));
#else
QString username = QString::fromLatin1(qgetenv("USER"));
#endif
return username + QStringLiteral("@") + QHostInfo::localHostName();
return QHostInfo::localHostName();
}
......
Markdown is supported
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