[gnome-control-center/gnome-42] network: Fix VPN with unescaped ampersand
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-42] network: Fix VPN with unescaped ampersand
- Date: Thu, 4 Aug 2022 09:36:46 +0000 (UTC)
commit 8ae2d124c7cef70ac13b7ff83450e699889c71d3
Author: David King <amigadave amigadave com>
Date: Thu Jul 14 14:29:31 2022 +0100
network: Fix VPN with unescaped ampersand
Much like in commit 47c586a82e4a4d27db2b68473d7fb370d45ef90b for the
wifi panel, fix escaping of titles for VPNs.
https://bugzilla.redhat.com/show_bug.cgi?id=2090996
panels/network/net-vpn.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c
index 1bbdcefb3..f66d334ce 100644
--- a/panels/network/net-vpn.c
+++ b/panels/network/net-vpn.c
@@ -49,14 +49,17 @@ G_DEFINE_TYPE (NetVpn, net_vpn, ADW_TYPE_ACTION_ROW)
static void
nm_device_refresh_vpn_ui (NetVpn *self)
{
+ g_autofree char *title_escaped = NULL;
const GPtrArray *acs;
NMActiveConnection *a;
gint i;
NMVpnConnectionState state;
/* update title */
+ title_escaped = g_markup_escape_text (nm_connection_get_id (self->connection),
+ -1);
adw_preferences_row_set_title (ADW_PREFERENCES_ROW (self),
- nm_connection_get_id (self->connection));
+ title_escaped);
if (self->active_connection) {
g_signal_handlers_disconnect_by_func (self->active_connection,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]