报告MantisBT时无法在消息中插入代码

时间:2015-10-09 07:57:30

标签: mantis

我试图使用MantisBT报告错误。在我的报告消息中包含以下代码:

<p><a href="javascript:window.open('http://www.google.com')">Google.com</a></p> 

但显示为

javascript:window.open('http://www.google.com' [^])

如何让代码在MantisBT中正确显示?

1 个答案:

答案 0 :(得分:0)

正如上面的CD001所述,出于安全原因,Mantis会限制文本字段中允许使用哪些标记。

您可以通过更新配置[1]来配置允许的配置,例如更新 config_inc.php 文件中的以下项目:

$g_html_valid_tags = 'p, li, ul, ol, br, pre, i, b, u, em, strong';
$g_html_valid_tags_single_line = 'i, b, u, em, strong';