From 3e9c7acdf817c40e4d658589a79c350aec9e8436 Mon Sep 17 00:00:00 2001 From: Evan Seguin Date: Thu, 26 Jul 2012 14:42:53 -0700 Subject: [PATCH] some parameters were not being properly URL encoded --- main/mashape/http/UrlUtils.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/mashape/http/UrlUtils.php b/main/mashape/http/UrlUtils.php index 128703c..1f8c391 100755 --- a/main/mashape/http/UrlUtils.php +++ b/main/mashape/http/UrlUtils.php @@ -68,7 +68,9 @@ class UrlUtils { } else { foreach ($parameters as $paramKey => $paramValue) { $delimiter = (strpos($finalUrl, "?") === false) ? "?" : "&"; - $finalUrl .= $delimiter . $paramKey . "=" . $paramValue; + if (strpos($finalUrl, $paramKey."=") === false) { + $finalUrl .= $delimiter . $paramKey . "=" . urlencode($paramValue); + } } }