File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1497,15 +1497,15 @@ private function skip_script_data(): bool {
1497
1497
$ at += strcspn ( $ html , '-< ' , $ at );
1498
1498
1499
1499
/*
1500
- * Ultimately a SCRIPT closer ( `</script>`) must be found or this function will
1501
- * return false. This removes the need for additional length checks and allows
1502
- * for an early return if it's impossible to find a closer .
1500
+ * A SCRIPT close tag `</script>` must be found or this function will
1501
+ * return false. If a close tag would not fit in the remaining string,
1502
+ * no further work is necessary .
1503
1503
*
1504
- * $at is potentially here
1505
- * ↓
1506
- * </script>
1507
- * ╰──┬───╯
1508
- * $at + 8 additional characters is the minimum length required to skip script data.
1504
+ * $at is potentially here
1505
+ * ↓
1506
+ * </script>
1507
+ * ╰──┬───╯
1508
+ * $at + 8 additional characters is the minimum length required to skip script data.
1509
1509
*/
1510
1510
if ( $ at + 8 >= $ doc_length ) {
1511
1511
return false ;
You can’t perform that action at this time.
0 commit comments