プロジェクト

全般

プロフィール

Vote #68679

未完了

Less-than sign in issue description and comments are not escaped

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
Reopend
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
開始日:
2010/11/24
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
32
issue_org_id:
6969
author_id:
24305
assigned_to_id:
1
comments:
6
status_id:
8
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
25
ステータス-->[Reopend]

説明

When an issue description or comment contains a less-than sign (@<@), this sign is output verbatim in the issue page, instead of being escaped with ampersand-"lt"-semicolon. This causes the issue details page to be invalid XHTML, which is contrary to the page's doctype, and makes it impossible to read the page with an XML parser. I created "an issue on the demo site":http://demo.redmine.org/issues/38181 to demonstrate the problem.

To reproduce, run @xmllint URL-OF-ISSUE-PAGE@, like this:

$ xmllint http://demo.redmine.org/issues/38181
http://demo.redmine.org/issues/38181:166: parser error : StartTag: invalid element name

Hm: <

^ http://demo.redmine.org/issues/38181:241: parser error : StartTag: invalid element name mg alt="Comment" src="/images/comment.png?1286930539" />

And this? < ^ http://demo.redmine.org/issues/38181:330: parser error : Entity 'copy' not defined Powered by Redmine © 2006-2010 Je ^

The third error is a false positive (xmllint doesn't know XHTML entities), but the first two errors are symptoms of this problem.


journals

Thank you for reporting this issue.

Textile formatter in the latest trunk (r14634) is still affected.
Here is a test to catch this issue: attachment:issue6969_test_escaping.diff
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Fixed in r14812.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Fix reverted, see #21202.
--------------------------------------------------------------------------------


related_issues

relates,Closed,21202,Left aligned sign in tabular is not worked since applying #6969

Admin Redmine さんが約2年前に更新

  • カテゴリText formatting_26 にセット
  • 対象バージョンCandidate for next major release_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0