mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6901 from mikenz/patch-12
BUGFIX: Prevent infinite loop
This commit is contained in:
commit
fac2bab785
@ -187,6 +187,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