[gnome-control-center/benzea/fix-wifi-connection-markup: 5/5] wifi: Fix connection names with markup not showing up
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/benzea/fix-wifi-connection-markup: 5/5] wifi: Fix connection names with markup not showing up
- Date: Fri, 29 Mar 2019 10:16:37 +0000 (UTC)
commit e5b017f45ed6e3eba33b29c02a6b01bd451eeada
Author: Benjamin Berg <bberg redhat com>
Date: Fri Mar 29 11:11:52 2019 +0100
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
panels/network/cc-wifi-connection-row.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/network/cc-wifi-connection-row.c b/panels/network/cc-wifi-connection-row.c
index 17fa7ae55..88ca9dfdc 100644
--- a/panels/network/cc-wifi-connection-row.c
+++ b/panels/network/cc-wifi-connection-row.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]