Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect
Commits
aa84aa5d
Commit
aa84aa5d
authored
Sep 24, 2020
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/kdeconnectconfig.cpp
View file @
aa84aa5d
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment