Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Fixed MigrateSiteTreeLinkingTask not working correctly when CL…

…RF newlines being used
  • Loading branch information...
commit 01f5b3d212d82320320c55bbf68ee757b827c10f 1 parent fef7c32
Sean Harvey halkyon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tasks/MigrateSiteTreeLinkingTask.php
4 tasks/MigrateSiteTreeLinkingTask.php
View
@@ -29,8 +29,8 @@ public function run($request) {
$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,
Please sign in to comment.
Something went wrong with that request. Please try again.