我提交错误后,Bugzilla 在评论框中显示浏览器数据
我最近一直在编辑我的 bugzilla 模板,为评论框等创建自定义的默认文本。现在,当我提交错误时,它似乎会自动在编辑页面中的评论开头添加浏览器详细信息(附加评论框下的评论部分) )。例如,如果我添加评论“由其他人提交,错误需要修复”,则
edit_bug 页面上的评论列表中的文本将显示为:
“User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en -我们) AppleWebKit/533.4(KHTML,如 Gecko) Chrome/5.0.375.126 Safari/533.4 构建标识符:
由其他人提交,错误需要修复
可重现:
重现步骤”
额外的文本似乎来自 comment-guided.txt.tmpl,我检查了 comment.txt.tmpl,这似乎仍然有其原始值。有人对导致此文本出现的原因有任何建议吗?
I have recently been editing my bugzilla templates to create customised default text for comments boxes etc. Now when I commit a bug it seems to automatically add the browser details at the start of the comment in the edit page (comments section under the additional comments box). For example if I add the comment "Submitted by A.N. Other, bug needs to be fixed"
The text in the comment list on the edit_bug page will read:
"User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.126 Safari/533.4
Build Identifier:
Submitted by A.N. Other, bug needs to be fixed
Reproducible:
Steps to reproduce"
The extra text seems to be coming from comment-guided.txt.tmpl, I have checked comment.txt.tmpl and this still seems to have its original values. Does anyone have any suggestions as to whats causing this text to show up?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我好像发现问题了。以下代码似乎已悄悄进入 create.html.tmpl 中的表单:
我已将其注释掉,现在似乎工作正常
I seem to have found the problem. The follwing code seems to have crept in to the form in create.html.tmpl:
I have commented this out and seems to be working fine now