You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you run Redmine with the redmine_wiki_extensions plugin, there is an issue when you post specific text to issue comments (journals) or issue descriptions.
When you type @<div class="some-class">@ in a input text field, save your changes and then reload the page you'll see broken HTML markup on the page, because the input text is interpreted as a part of the HTML code of the page.
This doesn't happen in plain Redmine, where the text is rendered as it was entered and not embedded in the page HTML code.
Here is the same page, but with redmine_wiki_extensions removed:
The text was updated successfully, but these errors were encountered:
The line explicitly allows posting <div> tags within any textile-formatted text. Commenting out this line makes this issue go, but it brings back the original issue.
cmrd-senya
added a commit
to cmrd-senya/redmine_wiki_extensions
that referenced
this issue
Sep 11, 2018
In this changeset I removed <div> from allowed tags as it makes it
possible to post arbitrary <div> tags in journals with @<div>@ markup.
It was originally put there to avoid issue with <p> tag wrapping of
included header/footer blocks by macros.
I found a workaround in current Textile parser which allows to disable
wrapping of macros. This can be done by adding "<code></code>" in the
beginning of the line. This way the rest of the line is rendered as is
without being put in a paragraph.
This behavior may change in RedCloth4, but Redmine is still not there so
we can use this workaround for a while, before Redmine comes up with an
appropriate way to disable paragraphs.
fixesharu#8
related https://code.google.com/archive/p/redminewikiext/issues/4
related https://redmine.org/issues/29588
related https://redmine.org/issues/13695
When you run Redmine with the
redmine_wiki_extensions
plugin, there is an issue when you post specific text to issue comments (journals) or issue descriptions.When you type
@<div class="some-class">@
in a input text field, save your changes and then reload the page you'll see broken HTML markup on the page, because the input text is interpreted as a part of the HTML code of the page.This doesn't happen in plain Redmine, where the text is rendered as it was entered and not embedded in the page HTML code.
Here is the same page, but with
redmine_wiki_extensions
removed:The text was updated successfully, but these errors were encountered: