Skip to content

Commit 6bc5b09

Browse files
committed
PICKME: Fix infinite loop in skip_script_data
1 parent c98f64d commit 6bc5b09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wp-includes/html-api/class-wp-html-tag-processor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,8 @@ private function skip_script_data(): bool {
14321432
}
14331433

14341434
// Everything of interest past here starts with "<".
1435-
if ( $at + 1 >= $doc_length || '<' !== $html[ $at++ ] ) {
1435+
if ( $at + 1 >= $doc_length || '<' !== $html[ $at + 1 ] ) {
1436+
$at += 1;
14361437
continue;
14371438
}
14381439

0 commit comments

Comments
 (0)