Skip to content

Commit

Permalink
Merge pull request #1652 from xwp/fix/safe-slack-alerts
Browse files Browse the repository at this point in the history
Fix: Allow only safe URLs for Slack alerts.
  • Loading branch information
marcinkrzeminski authored Dec 18, 2024
2 parents bd27629 + fc2ca13 commit 0ec0ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alerts/class-alert-type-slack.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function alert( $record_id, $recordarr, $alert ) {
$data['icon_url'] = $options['icon'];
}
}
wp_remote_post(
wp_safe_remote_post(
$options['webhook'],
array(
'body' => wp_json_encode( $data ),
Expand Down

0 comments on commit 0ec0ccb

Please sign in to comment.