libproxy/libproxy-0.4.11-kde-4.10.patch

14 lines
801 B
Diff

diff -Nru libproxy-0.4.11.orig/libproxy/modules/config_kde4.cpp libproxy-0.4.11/libproxy/modules/config_kde4.cpp
--- libproxy-0.4.11.orig/libproxy/modules/config_kde4.cpp 2012-07-05 18:50:06.000000000 +0200
+++ libproxy-0.4.11/libproxy/modules/config_kde4.cpp 2013-04-22 13:29:01.905639524 +0200
@@ -64,7 +64,8 @@
};
// The result of toLatin1() is undefined for non-Latin1 strings.
// However, KDE saves this entry using IDN and percent-encoding, so no problem...
- response.push_back(string(prxy.toLatin1().data()));
+ // Workaround: since recent kde versions a space is used instead of ':'
+ response.push_back(string(prxy.replace(' ',':').toLatin1().data()));
break;
case 2: // Use a manual PAC
// The result of toLatin1() is undefined for non-Latin1 strings.