1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

Limit max redirects to 5

This commit is contained in:
Khushboo Verma 2023-11-08 12:32:48 +05:30
parent 93d3cb7bcf
commit 698bce2c36

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);