diff options
| author | Mike Skec <skec@protonmail.ch> | 2020-12-28 17:29:50 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2020-12-28 11:10:31 +0100 |
| commit | 996fc1912b15431c6fef0de43603a4419fbf18d8 (patch) | |
| tree | fd8ebab0a4b22fc7fbd6fc133f5b3eb61970d8ab /src/browsertab.cpp | |
| parent | d35c4fee2236ffbdf998a5a0141be816bd27f3b7 (diff) | |
| download | kristall-996fc1912b15431c6fef0de43603a4419fbf18d8.tar.gz | |
Remove URL fragments before sending to server (#80)
Diffstat (limited to 'src/browsertab.cpp')
| -rw-r--r-- | src/browsertab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
