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,7 +1149,7 @@ internal_init (NMAWifiDialog *self,
tmp = g_strdup_printf (_("Passwords or encryption keys are required to access the Wi-Fi network “%s”."),
esc_ssid ? esc_ssid : "<unknown>");
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"),
tmp);
g_free (esc_ssid);
......
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