mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fixed MigrateSiteTreeLinkingTask not working correctly when CLRF newlines being used
This commit is contained in:
parent
fef7c32535
commit
01f5b3d212
@ -29,8 +29,8 @@ class MigrateSiteTreeLinkingTask extends BuildTask {
|
||||
$linked = DataObject::get_by_id('SiteTree', $childID);
|
||||
|
||||
// TOOD: Replace in all HTMLText fields
|
||||
$page->Content = preg_replace (
|
||||
"/href *= *([\"']?){$linked->URLSegment}\/?/i",
|
||||
$page->Content = preg_replace(
|
||||
"/(*ANYCRLF)href *= *([\"']?){$linked->URLSegment}\/?/i",
|
||||
"href=$1[sitetree_link id={$linked->ID}]",
|
||||
$page->Content,
|
||||
-1,
|
||||
|
Loading…
Reference in New Issue
Block a user