Skip to content

Commit f4251e3

Browse files
committed
Added urlencode to encrypted parameters
1 parent 29f281d commit f4251e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

php-client/class.phpipam-api.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,9 @@ private function curl_set_params ($params) {
686686
// create encrypted request
687687
$encrypted_request = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->api_key, json_encode($params), MCRYPT_MODE_ECB));
688688

689+
// escape +
690+
$encrypted_request = urlencode($encrypted_request);
691+
689692
// reset url
690693
curl_setopt($this->Connection, CURLOPT_URL, $this->api_url."?app_id=".$this->api_app_id."&enc_request=".$encrypted_request);
691694
}

0 commit comments

Comments
 (0)