diff --git a/app/Models/ProjectTaskContent.php b/app/Models/ProjectTaskContent.php index 125e54474..a49d64263 100644 --- a/app/Models/ProjectTaskContent.php +++ b/app/Models/ProjectTaskContent.php @@ -84,8 +84,9 @@ class ProjectTaskContent extends AbstractModel $content = str_replace($matchs[0][$key], ']+)(["\'][^>]*?>)/i'; + $replacement = '$1{{RemoteURL}}$3$4'; + $content = preg_replace($pattern, $replacement, $content); // $filePath = $path . md5($content); $publicPath = public_path($filePath);