Skip to content

Commit

Permalink
Fix: Allow only safe URLs for Slack alerts.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinkrzeminski committed Dec 18, 2024
1 parent ec217b8 commit fc2ca13
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 fc2ca13

Please sign in to comment.