View Issue Details

IDProjectCategoryView StatusLast Update
0009418mantisbtotherpublic2018-03-31 19:58
Reporterklkl Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionwon't fix 
Product Version1.1.2 
Summary0009418: Handling of HTML in issue descriptions is completely broken
Description

It's not possible to sanely report HTML-related bugs using Mantis, because it unescapes entities when it shouldn't and does that inconsistently.

Both cases:

< b >test< / b >
& l t ; b > test& l t ; / b >

result in bold text. I'd expect first one to be interpreted as bold text and the second one to show source code.

On the other hand, this is not interpreted as HTML:
< h1 >test< /h1 >

but that is:
& l t ; h1 > test& l t ; / h1 >

resulting in the same rendering as example without entities.

And none of this is consistent with formatting of text in e-mails and RSS.

Tagsbbcode

Activities

ryandesign

ryandesign

2008-07-18 15:42

reporter   ~0018612

I think this is mostly by design. By default, Mantis allows reporters to use bold, italics and such in bug reports and notes by using the usual HTML tags. This is because the $g_html_valid_tags variable in the config file comes preset to the value "p, li, ul, ol, br, pre, i, b, u". But as you see, this isn't so great when you want to paste raw HTML source code into your bug description and have it preserved as source that users can see. For those uses, you should clear out the $g_html_valid_tags variable.

vboctor

vboctor

2008-07-19 16:17

manager   ~0018619

There will be plugins in the future that allows different ways to format text. Hence, you should disable the HTML formatting and use bbcode or something similar (if required at all). Please confirm if this resolves your issue.

klkl

klkl

2008-07-20 13:33

reporter   ~0018622

Not exactly. The core of the problem is that HTML entities aren't preventing code from being intepreted as HTML.

If < b > makes text bold, then & lt ; b & gt ; should result in visible source. They can't both do the same thing - that doesn't follow HTMLs logic and makes things more unpredictable.

vboctor

vboctor

2018-03-24 02:31

manager   ~0059305

We now support markdown instead of html.