Fix duplicate curl_setopt_array calls and undefined variable bugs in 4 service plugins #139
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Four service plugins have duplicate
curl_setopt_array()calls, and two of them reference undefined variables. These are runtime bugs that will cause PHP warnings/errors when publishing to these platforms.Affected plugins
1. SendGrid (CRITICAL — undefined variable)
File:
source/packages/plg_mokosuitecross_sendgrid/src/Extension/SendgridService.phpcurl_setopt_array()calls$token— should be$apiKey2. Reddit (CRITICAL — undefined variable)
File:
source/packages/plg_mokosuitecross_reddit/src/Extension/RedditService.phpcurl_setopt_array()calls$token— should be$accessToken3. TikTok
File:
source/packages/plg_mokosuitecross_tiktok/src/Extension/TiktokService.phpcurl_setopt_array()calls4. Pinterest
File:
source/packages/plg_mokosuitecross_pinterest/src/Extension/PinterestService.phpcurl_setopt_array()callsFix
For each plugin:
curl_setopt_array()call$token→$apiKey, Reddit:$token→$accessToken)Acceptance Criteria
curl_setopt_array()call$token)