Skip to content

Commit 9c5d655

Browse files
committed
Sanitize user input in API request URL
1 parent 65d1545 commit 9c5d655

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

identibyte.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function cf7_identibyte_make_check($data) {
8080
));
8181
$context = stream_context_create($options);
8282

83-
$url = "https://identibyte.com/check/" . $data . $api_token;
83+
$url = esc_url("https://identibyte.com/check/" . $data . $api_token);
8484
$request = file_get_contents($url, false, $context);
8585
$response = json_decode($request);
8686

0 commit comments

Comments
 (0)