diff --git a/module/bug/view/sendmail.html.php b/module/bug/view/sendmail.html.php index 60892729ef..fbc0efd6dc 100644 --- a/module/bug/view/sendmail.html.php +++ b/module/bug/view/sendmail.html.php @@ -10,6 +10,10 @@ * @link http://www.zentao.net */ ?> +
@@ -24,8 +28,7 @@ steps, 'src="data/upload')) { - $bug->steps = str_replace('server->http_host . $this->config->webRoot, $bug->steps); - $bug->steps = str_replace('server->http_host . $this->config->webRoot, $bug->steps); + $bug->steps = preg_replace('/server->http_host . $this->config->webRoot, $bug->steps); } echo $bug->steps; ?> @@ -37,3 +40,4 @@
+ diff --git a/module/project/view/sendmail.html.php b/module/project/view/sendmail.html.php index da8e4f048a..78079fe6cd 100644 --- a/module/project/view/sendmail.html.php +++ b/module/project/view/sendmail.html.php @@ -10,6 +10,10 @@ * @link http://www.zentao.net */ ?> +
@@ -24,8 +28,7 @@ desc, 'src="data/upload')) { - $task->desc = str_replace('server->http_host . $this->config->webRoot, $task->desc); - $task->desc = str_replace('server->http_host . $this->config->webRoot, $task->desc); + $task->desc = preg_replace('/server->http_host . $this->config->webRoot, $task->desc); } echo $task->desc; ?> @@ -37,3 +40,4 @@
+ diff --git a/module/story/view/sendmail.html.php b/module/story/view/sendmail.html.php index 8ca31250d5..660cd7503d 100644 --- a/module/story/view/sendmail.html.php +++ b/module/story/view/sendmail.html.php @@ -10,6 +10,10 @@ * @link http://www.zentao.net */ ?> +
@@ -24,8 +28,7 @@ spec, 'src="data/upload')) { - $story->spec = str_replace('server->http_host . $this->config->webRoot, $story->spec); - $story->spec = str_replace('server->http_host . $this->config->webRoot, $story->spec); + $story->spec = preg_replace('/server->http_host . $this->config->webRoot, $story->spec); } echo $story->spec; ?> @@ -37,3 +40,4 @@
+ diff --git a/module/task/view/sendmail.html.php b/module/task/view/sendmail.html.php index 2d424afff2..ab113af340 100644 --- a/module/task/view/sendmail.html.php +++ b/module/task/view/sendmail.html.php @@ -10,6 +10,10 @@ * @link http://www.zentao.net */ ?> +
@@ -24,8 +28,7 @@ desc, 'src="data/upload')) { - $task->desc = str_replace('server->http_host . $this->config->webRoot, $task->desc); - $task->desc = str_replace('server->http_host . $this->config->webRoot, $task->desc); + $task->desc = preg_replace('/server->http_host . $this->config->webRoot, $task->desc); } echo $task->desc; ?> @@ -37,3 +40,4 @@
+ diff --git a/module/testtask/view/sendmail.html.php b/module/testtask/view/sendmail.html.php index 986d694191..d113683260 100644 --- a/module/testtask/view/sendmail.html.php +++ b/module/testtask/view/sendmail.html.php @@ -10,6 +10,10 @@ * @link http://www.zentao.net */ ?> +
@@ -24,8 +28,7 @@ desc, 'src="data/upload')) { - $testtask->desc = str_replace('server->http_host . $this->config->webRoot, $testtask->desc); - $testtask->desc = str_replace('server->http_host . $this->config->webRoot, $testtask->desc); + $testtask->desc = preg_replace('/server->http_host . $this->config->webRoot, $testtask->desc); } echo $testtask->desc; ?> @@ -37,3 +40,4 @@
+