Commit 3b00daa9 authored by Lubomir Rintel's avatar Lubomir Rintel
Browse files

libnma/wifi-dialog: properly escape the SSID

The SSIDs with [<>] in it would mess up with the markup.
parent 07d900c0
...@@ -1149,9 +1149,9 @@ internal_init (NMAWifiDialog *self, ...@@ -1149,9 +1149,9 @@ internal_init (NMAWifiDialog *self,
tmp = g_strdup_printf (_("Passwords or encryption keys are required to access the Wi-Fi network “%s”."), tmp = g_strdup_printf (_("Passwords or encryption keys are required to access the Wi-Fi network “%s”."),
esc_ssid ? esc_ssid : "<unknown>"); esc_ssid ? esc_ssid : "<unknown>");
gtk_window_set_title (GTK_WINDOW (self), _("Wi-Fi Network Authentication Required")); gtk_window_set_title (GTK_WINDOW (self), _("Wi-Fi Network Authentication Required"));
label = g_strdup_printf ("<span size=\"larger\" weight=\"bold\">%s</span>\n\n%s", label = g_markup_printf_escaped ("<span size=\"larger\" weight=\"bold\">%s</span>\n\n%s",
_("Authentication required by Wi-Fi network"), _("Authentication required by Wi-Fi network"),
tmp); tmp);
g_free (esc_ssid); g_free (esc_ssid);
g_free (tmp); g_free (tmp);
} else if (priv->operation == OP_CREATE_ADHOC) { } else if (priv->operation == OP_CREATE_ADHOC) {
......
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