Skip to content

Commit e02e112

Browse files
authored
Merge pull request #8 from bart-jaskulski/fix/query-infinite-loop
fix: do not allow to fall into infinite query loop on error
2 parents fdbcc79 + 25ebbb5 commit e02e112

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wp-includes/sqlite/class-wp-sqlite-pdo-engine.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ public function get_error_message() {
604604
$output .= '<p>Queries made or created this session were:</p>';
605605
$output .= '<ol>';
606606
foreach ( $this->queries as $q ) {
607-
$output .= '<li>' . esc_html( $q ) . '</li>';
607+
$output .= '<li>' . htmlspecialchars( $q ) . '</li>';
608608
}
609609
$output .= '</ol>';
610610
$output .= '</div>';
@@ -613,7 +613,7 @@ public function get_error_message() {
613613
$output .= sprintf(
614614
'Error occurred at line %1$d in Function %2$s. Error message was: %3$s.',
615615
(int) $this->errors[ $num ]['line'],
616-
'<code>' . esc_html( $this->errors[ $num ]['function'] ) . '</code>',
616+
'<code>' . htmlspecialchars( $this->errors[ $num ]['function'] ) . '</code>',
617617
$m
618618
);
619619
$output .= '</div>';

0 commit comments

Comments
 (0)