From cd7999e65e3bdf0d617e19fa7120f35e6bf709cd Mon Sep 17 00:00:00 2001 From: ren <18050944+renintw@users.noreply.github.com> Date: Mon, 3 Jun 2024 14:14:21 +0900 Subject: [PATCH] Add sanitization. --- .../plugins/wordcamp-organizer-reminders/wcor-reminder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php b/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php index bdbb2e085..1a2845803 100644 --- a/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php +++ b/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php @@ -201,7 +201,7 @@ protected function save_post_meta( $post, $new_meta ) { delete_post_meta( $post->ID, 'wcor_transparency_report' ); if ( isset( $new_meta['wcor_transparency_report'] ) ) { - update_post_meta( $post->ID, 'wcor_transparency_report', $new_meta['wcor_transparency_report'] ); + update_post_meta( $post->ID, 'wcor_transparency_report', sanitize_text_field( $new_meta['wcor_transparency_report'] ) ); } if ( isset( $new_meta['wcor_send_days_before'] ) ) {