* change str_replace to nl2br.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user