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); + } } }