Commit e5b017f4 authored by Benjamin Berg's avatar Benjamin Berg

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
parent 879dac11
......@@ -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)
{
......
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