From dbf632f03eba69a4dc79372bfc3878fb1d51fed6 Mon Sep 17 00:00:00 2001 From: Caleb Stauffer Date: Mon, 9 Oct 2023 16:51:38 -0400 Subject: [PATCH] stripslashes in globals panels --- globals/qmx-globals-output.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/globals/qmx-globals-output.php b/globals/qmx-globals-output.php index 0f9a4c1..0e7d6b0 100644 --- a/globals/qmx-globals-output.php +++ b/globals/qmx-globals-output.php @@ -49,7 +49,7 @@ public function output() { echo ''; echo '' . $i++ . ''; echo '' . esc_html( $key ) . ''; - echo '' . esc_html( (string) QM_Util::display_variable( $value ) ) . ''; + echo '' . esc_html( (string) QM_Util::display_variable( stripslashes( $value ) ) ) . ''; echo ''; } @@ -95,7 +95,7 @@ public function output() { echo ''; echo '' . $i++ . ''; echo '' . esc_html( $key ) . ''; - echo '' . esc_html( (string) QM_Util::display_variable( $value ) ) . ''; + echo '' . esc_html( (string) QM_Util::display_variable( stripslashes( $value ) ) ) . ''; echo ''; } @@ -141,7 +141,7 @@ public function output() { echo ''; echo '' . $i++ . ''; echo '' . esc_html( $key ) . ''; - echo '' . esc_html( (string) QM_Util::display_variable( $value ) ) . ''; + echo '' . esc_html( (string) QM_Util::display_variable( sanitize_textarea_field( $value ) ) ) . ''; echo ''; }