Helpviewer/SslCertificatesDialog.py

branch
5_1_x
changeset 1372
78a9250e52de
parent 922
f47d13653448
child 1510
e75ecf2bd9dd
--- a/Helpviewer/SslCertificatesDialog.py	Mon Oct 17 19:49:46 2011 +0200
+++ b/Helpviewer/SslCertificatesDialog.py	Tue Oct 18 18:57:12 2011 +0200
@@ -66,15 +66,15 @@
         @param cert certificate to insert (QSslCertificate)
         """
         # step 1: extract the info to be shown
-        organisation = Utilities.decodeString(
-            cert.subjectInfo(QSslCertificate.Organization))
+        organisation = Qt.escape(Utilities.decodeString(
+            cert.subjectInfo(QSslCertificate.Organization)))
         if organisation is None or organisation == "":
             organisation = self.trUtf8("(Unknown)")
-        commonName = Utilities.decodeString(
-            cert.subjectInfo(QSslCertificate.CommonName))
+        commonName = Qt.escape(Utilities.decodeString(
+            cert.subjectInfo(QSslCertificate.CommonName)))
         if commonName is None or commonName == "":
             commonName = self.trUtf8("(Unknown common name)")
-        expiryDate = cert.expiryDate().toString("yyyy-MM-dd")
+        expiryDate = Qt.escape(cert.expiryDate().toString("yyyy-MM-dd"))
         
         # step 2: create the entry
         items = self.serversCertificatesTree.findItems(organisation, 
@@ -248,15 +248,15 @@
         @param cert certificate to insert (QSslCertificate)
         """
         # step 1: extract the info to be shown
-        organisation = Utilities.decodeString(
-            cert.subjectInfo(QSslCertificate.Organization))
+        organisation = Qt.escape(Utilities.decodeString(
+            cert.subjectInfo(QSslCertificate.Organization)))
         if organisation is None or organisation == "":
             organisation = self.trUtf8("(Unknown)")
-        commonName = Utilities.decodeString(
-            cert.subjectInfo(QSslCertificate.CommonName))
+        commonName = Qt.escape(Utilities.decodeString(
+            cert.subjectInfo(QSslCertificate.CommonName)))
         if commonName is None or commonName == "":
             commonName = self.trUtf8("(Unknown common name)")
-        expiryDate = cert.expiryDate().toString("yyyy-MM-dd")
+        expiryDate = Qt.escape(cert.expiryDate().toString("yyyy-MM-dd"))
         
         # step 2: create the entry
         items = self.caCertificatesTree.findItems(organisation, 

eric ide

mercurial