Limit max redirects to 5
This commit is contained in:
parent
93d3cb7bcf
commit
698bce2c36
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue