Skip to content

Commit

Permalink
stripslashes in globals panels
Browse files Browse the repository at this point in the history
  • Loading branch information
crstauf committed Oct 9, 2023
1 parent 98cbd2d commit dbf632f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions globals/qmx-globals-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function output() {
echo '<tr>';
echo '<td class="qm-num">' . $i++ . '</td>';
echo '<td class="qm-ltr" data-qm-sort-weight="' . strtolower( esc_attr( $key ) ) . '"><code style="user-select: all;">' . esc_html( $key ) . '</code></td>';
echo '<td ' . ( is_bool( $value ) ? ' class="qm-' . $bools[ $value ] . '"' : '' ) . '>' . esc_html( (string) QM_Util::display_variable( $value ) ) . '</td>';
echo '<td ' . ( is_bool( $value ) ? ' class="qm-' . $bools[ $value ] . '"' : '' ) . '>' . esc_html( (string) QM_Util::display_variable( stripslashes( $value ) ) ) . '</td>';
echo '</tr>';
}

Expand Down Expand Up @@ -95,7 +95,7 @@ public function output() {
echo '<tr>';
echo '<td class="qm-num">' . $i++ . '</td>';
echo '<td class="qm-ltr" data-qm-sort-weight="' . strtolower( esc_attr( $key ) ) . '"><code style="user-select: all;">' . esc_html( $key ) . '</code></td>';
echo '<td ' . ( is_bool( $value ) ? ' class="qm-' . $bools[ $value ] . '"' : '' ) . '>' . esc_html( (string) QM_Util::display_variable( $value ) ) . '</td>';
echo '<td ' . ( is_bool( $value ) ? ' class="qm-' . $bools[ $value ] . '"' : '' ) . '>' . esc_html( (string) QM_Util::display_variable( stripslashes( $value ) ) ) . '</td>';
echo '</tr>';
}

Expand Down Expand Up @@ -141,7 +141,7 @@ public function output() {
echo '<tr>';
echo '<td class="qm-num">' . $i++ . '</td>';
echo '<td class="qm-ltr" data-qm-sort-weight="' . strtolower( esc_attr( $key ) ) . '"><code style="user-select: all;">' . esc_html( $key ) . '</code></td>';
echo '<td ' . ( is_bool( $value ) ? ' class="qm-' . $bools[ $value ] . '"' : '' ) . '>' . esc_html( (string) QM_Util::display_variable( $value ) ) . '</td>';
echo '<td ' . ( is_bool( $value ) ? ' class="qm-' . $bools[ $value ] . '"' : '' ) . '>' . esc_html( (string) QM_Util::display_variable( sanitize_textarea_field( $value ) ) ) . '</td>';
echo '</tr>';
}

Expand Down

0 comments on commit dbf632f

Please sign in to comment.