diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-12-23 13:32:05 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-12-23 14:05:48 +0000 |
commit | 9d3e7e9c2edb38a6bca9bb6c1cdef02c0a329ec4 (patch) | |
tree | d10d887804cd939700c5f17b95415c9100390cf2 /src/bluetooth/qbluetoothserviceinfo_bluez.cpp | |
parent | 3954571fa0ebffac7f1ea2f01b9d891bbd3e83b2 (diff) |
Bluez5: Sanitize app name to be valid DBus object path name
This may happen when the app name contains for example a dash ('-').
Task-number: QTBUG-49402
Change-Id: I04b289b0723e2979a67c93e335205556bf1eb30e
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qbluetoothserviceinfo_bluez.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothserviceinfo_bluez.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothserviceinfo_bluez.cpp b/src/bluetooth/qbluetoothserviceinfo_bluez.cpp index e3fa81d1..d18f4bb1 100644 --- a/src/bluetooth/qbluetoothserviceinfo_bluez.cpp +++ b/src/bluetooth/qbluetoothserviceinfo_bluez.cpp @@ -294,7 +294,7 @@ bool QBluetoothServiceInfoPrivate::registerService(const QBluetoothAddress &loca // create path profilePath = profilePathTemplate; profilePath.append(QString::fromLatin1("/%1%2/%3"). - arg(QCoreApplication::applicationName()). + arg(sanitizeNameForDBus(QCoreApplication::applicationName())). arg(QCoreApplication::applicationPid()). arg(pathCounter.fetchAndAddOrdered(1))); |