wifi: Fix connection names with markup not showing up

In some cases, the network connection UI uses pango markup to denote the
SSID name inside a connection name. However, if the SSID matched the
connection name, then we would end up setting the SSID as pango markup
without it being escaped.

Fix this by escaping the SSID before setting it as markup.

Fixes: #435
This commit is contained in:
Benjamin Berg 2019-03-29 11:11:52 +01:00
parent 879dac115f
commit e5b017f45e

View file

@ -174,7 +174,7 @@ update_ui (CcWifiConnectionRow *self)
ssid_pos = strstr (name, ssid_str);
if (ssid_pos == name && strlen (name) == strlen (ssid_str))
{
title = g_strdup (name);
title = g_markup_escape_text (name, -1);
}
else if (ssid_pos)
{