プロジェクト

全般

プロフィール

Vote #72111

完了

Link is escaped in wiki added/updated notification email

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
9
version_id:
54
issue_org_id:
11262
author_id:
56592
assigned_to_id:
56592
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
52
ステータス-->[Closed]

説明

After wiki page update/addition a notification mail is generated. This mail contains localized message @:mail_body_wiki_content_updated@ with interpolated html link to wiki page (@:id@ argument).

Currently, this generated message is treated as html unsafe and thus all tags are escaped. The workaround is to call @html_safe@ method on localized message. Attached patch contains implementation of this workaround and unit tests covering this issue.

Please let me know if there is a better solution.


Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.4
Rails version 3.2.6
Active Record version 3.2.6
Action Pack version 3.2.6
Active Resource version 3.2.6
Action Mailer version 3.2.6
Active Support version 3.2.6
Environment development
Database adapter sqlite3
Database schema version 20120422150750


journals

Patch committed in r9896, thanks.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリEmail notifications_9 にセット
  • 対象バージョン2.0.4_54 にセット

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

いいね!0
いいね!0