mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-26 06:29:24 +02:00
BUGFIX: Prevent infinite loop
Prevent infinite loop when a < is present without a matching >
This commit is contained in:
parent
ff35baaeab
commit
4373bdb991
|
@ -182,6 +182,9 @@ class Diff extends \Diff
|
|||
$newChunk = $item;
|
||||
while ($item[strlen($item)-1] != ">") {
|
||||
$chunk = each($candidateChunks);
|
||||
if ($chunk === false) {
|
||||
break;
|
||||
}
|
||||
$item = $chunk['value'];
|
||||
$newChunk .= ' ' . $item;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user