プロジェクト

全般

プロフィール

Vote #75161

完了

Redmine links broken when object name contains special characters

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

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

0%

予定工数:
category_id:
26
version_id:
84
issue_org_id:
16668
author_id:
88910
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
75
ステータス-->[Closed]

説明

When attaching files with special characters (ampersand is an example), the attachment link does not work:

attachment:"Test & Show.txt"

attachment:"Test & Show.txt"

The regular expression in application_helper.rb, parse_redmine_links does parse the filename correctly but it seems that the code that compares attachments to the filename fails to match the two.

Environment:
  Redmine version                2.5.0.stable
  Ruby version                   1.9.3-p231 (2012-05-25) [i386-mingw32]
  Rails version                  3.2.17
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.4
  Perforce                       2013.1
  Git                            1.8.5.2

journals

The regular expression is located at:
source:trunk/app/helpers/application_helper.rb@12954#L748
And the source to associate the file name to the attachment is located at:
source:trunk/app/helpers/application_helper.rb@12954#L871
--------------------------------------------------------------------------------
Fixed in r13106.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------

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

  • カテゴリText formatting_26 にセット
  • 対象バージョン2.5.2_84 にセット

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

いいね!0
いいね!0