* change str_replace to nl2br.

This commit is contained in:
xia0ta0
2014-03-24 10:55:53 +08:00
parent 73366a111f
commit 9aa6a9e7e9
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ class bugModel extends model
$bug->project = $data->projects[$i] ? $data->projects[$i] : 0;
$bug->openedBuild = implode(',', $data->openedBuilds[$i]);
$bug->title = $data->titles[$i];
$bug->steps = str_replace(array("\r\n", "\n"), '<br />', htmlspecialchars($data->stepses[$i]));
$bug->steps = nl2br(htmlspecialchars($data->stepses[$i]));
$bug->type = $data->types[$i];
$bug->severity = $data->severities[$i];
$bug->os = $data->oses[$i];