Skip to content

Commit e2f565b

Browse files
committed
Fix: Add missing slash in CyberArk request URLs
In cyberark_send_request a slash is added to the URL, separating the hostname and optional port from the path. This makes the connection work without having to add a slash a the start of the path manually.
1 parent 8cd27a8 commit e2f565b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cyberark/cyberark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ cyberark_send_request (cyberark_connector_t conn,
200200
gchar *url;
201201

202202
if (conn->port )
203-
url = g_strdup_printf ("%s://%s:%d%s%s", conn->protocol, conn->host,
203+
url = g_strdup_printf ("%s://%s:%d/%s%s", conn->protocol, conn->host,
204204
conn->port, conn->path, request_path);
205205
else
206-
url = g_strdup_printf ("%s://%s%s%s", conn->protocol, conn->host,
206+
url = g_strdup_printf ("%s://%s/%s%s", conn->protocol, conn->host,
207207
conn->path, request_path);
208208

209209
gvm_http_headers_t *headers = init_custom_header (apikey, payload ? TRUE : FALSE);

0 commit comments

Comments
 (0)