diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-06-04 20:02:11 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-06-09 15:15:16 +0200 |
commit | 4ac0ca4bf949c30cb5e94831d6b0c4e66eb2110c (patch) | |
tree | db34de4b7d4b79ed5ad91077ff9a2a4165b706f0 /kde-frameworks/kio/files | |
parent | kde-frameworks/extra-cmake-modules: 5.34.0 arm,hppa,ppc,ppc64 stable (diff) | |
download | gentoo-4ac0ca4bf949c30cb5e94831d6b0c4e66eb2110c.tar.gz gentoo-4ac0ca4bf949c30cb5e94831d6b0c4e66eb2110c.tar.bz2 gentoo-4ac0ca4bf949c30cb5e94831d6b0c4e66eb2110c.zip |
kde-frameworks: Drop KDE Frameworks 5.29.0
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'kde-frameworks/kio/files')
-rw-r--r-- | kde-frameworks/kio/files/kio-5.29.0-sanitize-url.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/kde-frameworks/kio/files/kio-5.29.0-sanitize-url.patch b/kde-frameworks/kio/files/kio-5.29.0-sanitize-url.patch deleted file mode 100644 index f9f398652d95..000000000000 --- a/kde-frameworks/kio/files/kio-5.29.0-sanitize-url.patch +++ /dev/null @@ -1,38 +0,0 @@ -commit f9d0cb47cf94e209f6171ac0e8d774e68156a6e4 -Author: Albert Astals Cid <aacid@kde.org> -Date: Tue Feb 28 19:00:48 2017 +0100 - - Sanitize URLs before passing them to FindProxyForURL - - Remove user/password information - For https: remove path and query - - Thanks to safebreach.com for reporting the problem - - CCMAIL: yoni.fridburg@safebreach.com - CCMAIL: amit.klein@safebreach.com - CCMAIL: itzik.kotler@safebreach.com - -diff --git a/src/kpac/script.cpp b/src/kpac/script.cpp -index a0235f73..2485c54d 100644 ---- a/src/kpac/script.cpp -+++ b/src/kpac/script.cpp -@@ -754,9 +754,16 @@ QString Script::evaluate(const QUrl &url) - } - } - -+ QUrl cleanUrl = url; -+ cleanUrl.setUserInfo(QString()); -+ if (cleanUrl.scheme() == QLatin1String("https")) { -+ cleanUrl.setPath(QString()); -+ cleanUrl.setQuery(QString()); -+ } -+ - QScriptValueList args; -- args << url.url(); -- args << url.host(); -+ args << cleanUrl.url(); -+ args << cleanUrl.host(); - - QScriptValue result = func.call(QScriptValue(), args); - if (result.isError()) { |