Skip to content

Commit 23fb668

Browse files
committed
Fix minor encoding bug
1 parent 69255f3 commit 23fb668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpaneluapi.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ protected function APIcall($name, $arguments)
169169
throw new Exception('$this->api is not set or is incorrectly set. The only available options are \'uapi\' or \'api2\'');
170170
}
171171
foreach ($arguments as $key => $value) {
172-
$this->requestUrl .= $key . "=" . $value . "&";
172+
$this->requestUrl .= $key . "=" . urlencode($value) . "&";
173173
}
174174

175175
return $this->curl_request($this->requestUrl);

0 commit comments

Comments
 (0)