summaryrefslogtreecommitdiff
path: root/libproxy/modules
diff options
context:
space:
mode:
authornicolas.dufresne <nicolas.dufresne@c587cffe-e639-0410-9787-d7902ae8ed56>2010-06-02 19:00:04 +0000
committernicolas.dufresne <nicolas.dufresne@c587cffe-e639-0410-9787-d7902ae8ed56>2010-06-02 19:00:04 +0000
commitb62cd566e5848cc6be40baefa1c34be272f9eab1 (patch)
treee56ac912321345e49f58b6cba7ed452847bc0b48 /libproxy/modules
parent52403da5b62955313964eccc4ee28a8c931d1bb8 (diff)
downloadlibproxy-b62cd566e5848cc6be40baefa1c34be272f9eab1.tar.gz
Fix Issue 109: Username and password are not encoded
git-svn-id: http://libproxy.googlecode.com/svn/trunk@686 c587cffe-e639-0410-9787-d7902ae8ed56
Diffstat (limited to 'libproxy/modules')
-rw-r--r--libproxy/modules/config_gnome.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libproxy/modules/config_gnome.cpp b/libproxy/modules/config_gnome.cpp
index 378b97e..8553f2a 100644
--- a/libproxy/modules/config_gnome.cpp
+++ b/libproxy/modules/config_gnome.cpp
@@ -194,8 +194,8 @@ public:
else if (this->data[PROXY_MODE] == "manual") {
string type, host, port;
bool auth = this->data[PROXY_USE_AUTHENTICATION] == "true";
- string username = this->data[PROXY_AUTH_USER];
- string password = this->data[PROXY_AUTH_PASSWORD];
+ string username = url::encode(this->data[PROXY_AUTH_USER], url::ALLOWED_IN_USERINFO_ELEMENT);
+ string password = url::encode(this->data[PROXY_AUTH_PASSWORD], url::ALLOWED_IN_USERINFO_ELEMENT);
bool same_proxy = this->data[PROXY_SAME_FOR_ALL] == "true";
// If socks is set use it (except when same_proxy is set)