diff -r f2e7957924cb -r a652a6794953 Helpviewer/SslInfoDialog.py --- a/Helpviewer/SslInfoDialog.py Wed Oct 12 19:39:30 2011 +0200 +++ b/Helpviewer/SslInfoDialog.py Sun Oct 16 13:35:19 2011 +0200 @@ -7,7 +7,7 @@ Module implementing a dialog to show SSL certificate infos. """ -from PyQt4.QtCore import QCryptographicHash, QDateTime +from PyQt4.QtCore import QCryptographicHash, QDateTime, Qt from PyQt4.QtGui import QDialog from PyQt4.QtNetwork import QSslCertificate @@ -50,8 +50,10 @@ certificate.issuerInfo(QSslCertificate.Organization))) self.issuerOrganizationalUnitLabel.setText(self.__certificateString( certificate.issuerInfo(QSslCertificate.OrganizationalUnitName))) - self.effectiveLabel.setText(certificate.effectiveDate().toString("yyyy-MM-dd")) - self.expiresLabel.setText(certificate.expiryDate().toString("yyyy-MM-dd")) + self.effectiveLabel.setText(Qt.escape( + certificate.effectiveDate().toString("yyyy-MM-dd"))) + self.expiresLabel.setText(Qt.escape( + certificate.expiryDate().toString("yyyy-MM-dd"))) self.sha1Label.setText(self.__formatHexString( str(certificate.digest(QCryptographicHash.Sha1).toHex(), encoding="ascii"))) self.md5Label.setText(self.__formatHexString( @@ -74,7 +76,7 @@ if txt is None or txt == "": return self.trUtf8("<not part of the certificate>") - return Utilities.decodeString(txt) + return Qt.escape(Utilities.decodeString(txt)) def __serialNumber(self, cert): """ @@ -110,7 +112,7 @@ hexList.append(hexString[:2]) hexString = hexString[2:] - return ':'.join(hexList) + return Qt.escape(':'.join(hexList)) def __hasExpired(self, effectiveDate, expiryDate): """