mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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…
x
Reference in New Issue
Block a user