Minor bug fixes

This commit is contained in:
Taras Machyshyn
2018-06-29 12:36:52 +03:00
parent ed6256da2c
commit f55e0b2cb0
@@ -165,9 +165,10 @@ class AdminNotifications extends \Espo\Core\Services\Base
if (function_exists('curl_version')) {
$ch = curl_init();
$requestUrl = $url ? $url : base64_decode('aHR0cHM6Ly9zLmVzcG9jcm0uY29tLw==');
$requestUrl = $url ? trim($url) : base64_decode('aHR0cHM6Ly9zLmVzcG9jcm0uY29tLw==');
$requestUrl = (substr($requestUrl, -1) == '/') ? $requestUrl : $requestUrl . '/';
curl_setopt($ch, CURLOPT_URL, $requestUrl. '?' . http_build_query($requestData));
curl_setopt($ch, CURLOPT_URL, $requestUrl . '?' . http_build_query($requestData));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);