Helpviewer/SslCertificatesDialog.py

changeset 1367
a652a6794953
parent 1131
7781e396c903
child 1509
c0b5e693b0eb
diff -r f2e7957924cb -r a652a6794953 Helpviewer/SslCertificatesDialog.py
--- a/Helpviewer/SslCertificatesDialog.py	Wed Oct 12 19:39:30 2011 +0200
+++ b/Helpviewer/SslCertificatesDialog.py	Sun Oct 16 13:35:19 2011 +0200
@@ -67,15 +67,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,
@@ -249,15 +249,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