Do not leak the local user in the device name.
Thanks Matthias Gerstner <mgerstner@suse.de> for reporting this.
This commit is contained in:
parent
7b904f47b3
commit
aa84aa5dcb
1 changed files with 1 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue