From e7e3c0b345eca1310872ae5153b3a2c8e1db622a Mon Sep 17 00:00:00 2001 From: Sune Vuorela Date: Thu, 12 Jun 2008 10:14:17 +0000 Subject: Get patch from 4.4.2 to allow Https to be treated as https in -network. --- debian/changelog | 1 + debian/patches/0002_https_lowercase.cpp | 35 +++++++++++++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 37 insertions(+) create mode 100644 debian/patches/0002_https_lowercase.cpp (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 8f81dad..7457537 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ qt4-x11 (4.4.0-4) unstable; urgency=low * Get patch from 4.4.2 (yes!) to fix painting of scrollbars in webkit with some styles. + * Get patch from 4.4.2 to allow Https to be treated as https in -network. -- Sune Vuorela Wed, 11 Jun 2008 23:22:22 +0200 diff --git a/debian/patches/0002_https_lowercase.cpp b/debian/patches/0002_https_lowercase.cpp new file mode 100644 index 0000000..3c900d4 --- /dev/null +++ b/debian/patches/0002_https_lowercase.cpp @@ -0,0 +1,35 @@ +Fetched from 4.4.2 +treat Https, HTtps, hTTps, ... as https as well + +Index: b/src/network/access/qnetworkaccesshttpbackend.cpp +=================================================================== +--- a/src/network/access/qnetworkaccesshttpbackend.cpp ++++ b/src/network/access/qnetworkaccesshttpbackend.cpp +@@ -64,7 +64,7 @@ + static QByteArray makeCacheKey(const QUrl &url) + { + QUrl copy = url; +- bool isEncrypted = url.scheme() == QLatin1String("https"); ++ bool isEncrypted = url.scheme().toLower() == QLatin1String("https"); + copy.setPort(url.port(isEncrypted ? DefaultHttpsPort : DefaultHttpPort)); + return "http-connection:" + copy.toEncoded(QUrl::RemovePassword | QUrl::RemovePath | + QUrl::RemoveQuery | QUrl::RemoveFragment); +@@ -88,7 +88,8 @@ + } + + QUrl url = request.url(); +- if (url.scheme() == QLatin1String("http") || url.scheme() == QLatin1String("https")) ++ QString scheme = url.scheme().lower(); ++ if (scheme == QLatin1String("http") || scheme == QLatin1String("https")) + return new QNetworkAccessHttpBackend; + + return 0; +@@ -309,7 +310,7 @@ + void QNetworkAccessHttpBackend::open() + { + QUrl url = request().url(); +- bool encrypt = url.scheme() == QLatin1String("https"); ++ bool encrypt = url.scheme().toLower() == QLatin1String("https"); + setAttribute(QNetworkRequest::ConnectionEncryptedAttribute, encrypt); + + // set the port number in the reply if it wasn't set diff --git a/debian/patches/series b/debian/patches/series index acb148c..e164907 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,5 +1,6 @@ # patches from upstream 0001_webkit_backround_in_scrollbars_webkit-5b0ea6b840a6e25e97b886e1852c3fc6ef8e8d0d.diff +0002_https_lowercase.cpp # qt-copy patches 0167-fix-group-reading.diff 0180-window-role.diff -- cgit v1.2.3