179 self.__browser.url().scheme() == "https" and \ |
179 self.__browser.url().scheme() == "https" and \ |
180 QSslCertificate is not None: |
180 QSslCertificate is not None: |
181 sslInfo = self.__browser.page().getSslInfo() |
181 sslInfo = self.__browser.page().getSslInfo() |
182 if sslInfo is not None: |
182 if sslInfo is not None: |
183 if qVersion() >= "5.0.0": |
183 if qVersion() >= "5.0.0": |
184 org = Qt.escape(Utilities.decodeString( |
184 org = Utilities.html_encode(Utilities.decodeString( |
185 ", ".join(sslInfo.subjectInfo(QSslCertificate.Organization)))) |
185 ", ".join(sslInfo.subjectInfo(QSslCertificate.Organization)))) |
186 else: |
186 else: |
187 org = Qt.escape(Utilities.decodeString( |
187 org = Utilities.html_encode(Utilities.decodeString( |
188 sslInfo.subjectInfo(QSslCertificate.Organization))) |
188 sslInfo.subjectInfo(QSslCertificate.Organization))) |
189 if org == "": |
189 if org == "": |
190 if qVersion() >= "5.0.0": |
190 if qVersion() >= "5.0.0": |
191 cn = Qt.escape(Utilities.decodeString( |
191 cn = Utilities.html_encode(Utilities.decodeString( |
192 ", ".join( |
192 ", ".join( |
193 sslInfo.subjectInfo(QSslCertificate.CommonName)))) |
193 sslInfo.subjectInfo(QSslCertificate.CommonName)))) |
194 else: |
194 else: |
195 cn = Qt.escape(Utilities.decodeString( |
195 cn = Utilities.html_encode(Utilities.decodeString( |
196 sslInfo.subjectInfo(QSslCertificate.CommonName))) |
196 sslInfo.subjectInfo(QSslCertificate.CommonName))) |
197 if cn != "": |
197 if cn != "": |
198 org = cn.split(".", 1)[1] |
198 org = cn.split(".", 1)[1] |
199 if org == "": |
199 if org == "": |
200 org = self.trUtf8("Unknown") |
200 org = self.trUtf8("Unknown") |