We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fdbcc79 + 25ebbb5 commit e02e112Copy full SHA for e02e112
1 file changed
wp-includes/sqlite/class-wp-sqlite-pdo-engine.php
@@ -604,7 +604,7 @@ public function get_error_message() {
604
$output .= '<p>Queries made or created this session were:</p>';
605
$output .= '<ol>';
606
foreach ( $this->queries as $q ) {
607
- $output .= '<li>' . esc_html( $q ) . '</li>';
+ $output .= '<li>' . htmlspecialchars( $q ) . '</li>';
608
}
609
$output .= '</ol>';
610
$output .= '</div>';
@@ -613,7 +613,7 @@ public function get_error_message() {
613
$output .= sprintf(
614
'Error occurred at line %1$d in Function %2$s. Error message was: %3$s.',
615
(int) $this->errors[ $num ]['line'],
616
- '<code>' . esc_html( $this->errors[ $num ]['function'] ) . '</code>',
+ '<code>' . htmlspecialchars( $this->errors[ $num ]['function'] ) . '</code>',
617
$m
618
);
619
0 commit comments