Commit f784038a authored by José Renan Silva Luciano's avatar José Renan Silva Luciano Committed by Nate Graham

Fix bug with components containing special characters

BUG: 407139
FIXED-IN: 5.71
parent 42b9f1e1
......@@ -206,7 +206,8 @@ QDBusObjectPath Component::dbusPath() const
const int len = dbusPath.length();
for ( int i = 0; i < len; ++i )
{
if ( !dbusPath[i].isLetterOrNumber() )
if ( !dbusPath[i].isLetterOrNumber() || dbusPath[i].unicode() >= 0x7F )
// DBus path can only contain ASCII characters
dbusPath[i] = QLatin1Char('_');
}
// QDBusObjectPath could be a little bit easier to handle :-)
......
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