aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/GtkNSSClientAuthDialogs.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-06-18 01:57:12 +0800
committerChristian Persch <chpe@src.gnome.org>2004-06-18 01:57:12 +0800
commitd5ea4ef0e4f4872a03e3ae9f41f23940f99922cc (patch)
tree8ac2c2d4b89c2ca98b2f3f15464c48743f26515e /embed/mozilla/GtkNSSClientAuthDialogs.cpp
parentf2e8ab7c911d504732a40d74cbbb1aff2fec7e33 (diff)
downloadgsoc2013-epiphany-d5ea4ef0e4f4872a03e3ae9f41f23940f99922cc.tar
gsoc2013-epiphany-d5ea4ef0e4f4872a03e3ae9f41f23940f99922cc.tar.gz
gsoc2013-epiphany-d5ea4ef0e4f4872a03e3ae9f41f23940f99922cc.tar.bz2
gsoc2013-epiphany-d5ea4ef0e4f4872a03e3ae9f41f23940f99922cc.tar.lz
gsoc2013-epiphany-d5ea4ef0e4f4872a03e3ae9f41f23940f99922cc.tar.xz
gsoc2013-epiphany-d5ea4ef0e4f4872a03e3ae9f41f23940f99922cc.tar.zst
gsoc2013-epiphany-d5ea4ef0e4f4872a03e3ae9f41f23940f99922cc.zip
Escape strings before using the with markup in labels. Patch by Crispin
2004-06-17 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: Escape strings before using the with markup in labels. Patch by Crispin Flowerday.
Diffstat (limited to 'embed/mozilla/GtkNSSClientAuthDialogs.cpp')
-rw-r--r--embed/mozilla/GtkNSSClientAuthDialogs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/mozilla/GtkNSSClientAuthDialogs.cpp b/embed/mozilla/GtkNSSClientAuthDialogs.cpp
index 1ff07e953..b3196dd75 100644
--- a/embed/mozilla/GtkNSSClientAuthDialogs.cpp
+++ b/embed/mozilla/GtkNSSClientAuthDialogs.cpp
@@ -189,7 +189,7 @@ GtkNSSClientAuthDialogs::ChooseCertificate (nsIInterfaceRequestor *ctx,
nsEmbedCString utf8_cn;
NS_UTF16ToCString (nsEmbedString (cn),
NS_CSTRING_ENCODING_UTF8, utf8_cn);
- tt_cn = g_strdup_printf ("\"<tt>%s</tt>\"", utf8_cn.get());
+ tt_cn = g_markup_printf_escaped ("\"<tt>%s</tt>\"", utf8_cn.get());
msg = g_strdup_printf (_("Choose a certificate to present as identification to %s."),
tt_cn);