Limit max redirects to 5

This commit is contained in:
Khushboo Verma committed 2023-11-08 12:32:48 +05:30
1 parent 93d3cb7bcf
commit 698bce2c36
1 file changed
+2 -1
+2 -1
View File
@@ -99,7 +99,8 @@ class Webhooks extends Action
'X-' . APP_NAME . '-Webhook-Signature: ' . $signature,
]
);
curl_setopt($ch, CURLOPT_MAXREDIRS, 5);
if (!$webhook->getAttribute('security', true)) {
\curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
\curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);