From 996fc1912b15431c6fef0de43603a4419fbf18d8 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Mon, 28 Dec 2020 17:29:50 +1100 Subject: Remove URL fragments before sending to server (#80) --- src/browsertab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/browsertab.cpp') diff --git a/src/browsertab.cpp b/src/browsertab.cpp index 3e05ae8..1f8bb9b 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -1139,7 +1139,7 @@ bool BrowserTab::startRequest(const QUrl &url, ProtocolHandler::RequestOptions o this, "Kristall", tr("Your client certificate has a host filter enabled and this site does not match the host filter.\r\nNew URL: %1\r\nHost Filter: %2\r\nDo you want to keep the certificate enabled?") - .arg(url.toString(QUrl::FullyEncoded)) + .arg(url.toString(QUrl::FullyEncoded | QUrl::RemoveFragment)) .arg(this->current_identity.host_filter), QMessageBox::Yes | QMessageBox::No, QMessageBox::No @@ -1181,7 +1181,7 @@ bool BrowserTab::startRequest(const QUrl &url, ProtocolHandler::RequestOptions o this->network_timeout_timer.start(kristall::options.network_timeout); - return this->current_handler->startRequest(url, options); + return this->current_handler->startRequest(url.adjusted(QUrl::RemoveFragment), options); } bool BrowserTab::enableClientCertificate(const CryptoIdentity &ident) -- cgit v1.2.3