Skip to content

Commit 8a316b7

Browse files
author
Mukesh Kumar
authored
Update class-admin.php
1 parent c057661 commit 8a316b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/contact-form/class-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public function get_csv_export_section() {
241241
<div class="export-card__body-cta">
242242
<?php
243243
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- we're literally building all this html to output it
244-
echo $button_csv_html;
244+
// Allow expected HTML but strip unsafe tags: echo wp_kses_post( $button_csv_html );
245245
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- we're literally building all this html to output it
246246
echo wp_nonce_field( 'feedback_export', $this->export_nonce_field_csv, false, false );
247247
?>

0 commit comments

Comments
 (0)