1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Finally fixed error with saving certificate exceptions. Closes #44

- removed slashes "/" from certificate name
   (when certificate name was for example http://a.c/)
This commit is contained in:
nowrep 2011-11-27 19:57:04 +01:00
parent 0b56af4be7
commit 0dd2c61d2d

View File

@ -345,7 +345,10 @@ void NetworkManager::addLocalCertificate(const QSslCertificate &cert)
dir.mkdir("certificates");
}
QString fileName = qz_ensureUniqueFilename(mApp->getActiveProfilPath() + "certificates/" + CertificateInfoWidget::certificateItemText(cert).remove(" ") + ".crt");
QString certFileName = CertificateInfoWidget::certificateItemText(cert).remove(" ") + ".crt";
certFileName = certFileName.remove("/");
QString fileName = qz_ensureUniqueFilename(mApp->getActiveProfilPath() + "certificates/" + certFileName);
QFile file(fileName);
if (file.open(QFile::WriteOnly)) {