summaryrefslogtreecommitdiff
path: root/inc/HTTPClient.php
diff options
context:
space:
mode:
authorChris Smith <chris.eureka@jalakai.co.uk>2008-08-11 12:25:01 +0200
committerChris Smith <chris.eureka@jalakai.co.uk>2008-08-11 12:25:01 +0200
commit7a0f9a272fc1f885ff3a5bebcbaf88ae0a43823f (patch)
treeb153cc68998962389a42ad50fedefb4f6f892dbe /inc/HTTPClient.php
parenta3beeb6351a31e881a67898af048517473b063c6 (diff)
downloadrpg-7a0f9a272fc1f885ff3a5bebcbaf88ae0a43823f.tar.gz
rpg-7a0f9a272fc1f885ff3a5bebcbaf88ae0a43823f.tar.bz2
Update HTTPClient to encode posted variable names
darcs-hash:20080811102501-f07c6-5e66b06f303ea9945a22f6636c1f1210089a1aa1.gz
Diffstat (limited to 'inc/HTTPClient.php')
-rw-r--r--inc/HTTPClient.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php
index 3d843c912..8ff206444 100644
--- a/inc/HTTPClient.php
+++ b/inc/HTTPClient.php
@@ -479,7 +479,7 @@ class HTTPClient {
function _postEncode($data){
foreach($data as $key => $val){
if($url) $url .= '&';
- $url .= $key.'='.urlencode($val);
+ $url .= urlencode($key).'='.urlencode($val);
}
return $url;
}