プロジェクト

全般

プロフィール

Vote #63433

完了

Invalid html generated by wiki formatter

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

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Wiki_1
対象バージョン:
開始日:
2008/06/15
期日:
進捗率:

0%

予定工数:
category_id:
1
version_id:
2
issue_org_id:
1456
author_id:
993
assigned_to_id:
0
comments:
1
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
4
ステータス-->[Closed]

説明

Links generated by the wiki are invalid when they contain something that could be an email. For example, this :


http://foo@www.bar.com

is transformed to


www.foo@bar.com\">http://www.foo@bar.com

and rendered as this http://foo@www.bar.com in a web browser.

I observed this problem by using @hg fetch@ that generates commit messages like :


Automated merge with https://login@hg.foo.com/project.

Here is a patch that solves the problem and a unit test. The code come from http://dev.rubyonrails.org/changeset/7516. The only limitation of this solution is in that case :


http://foo@bar.com foo@bar.com

where only the first link is detected. I did not found the magic regexp. Maybe this could be solved with some lookbehind but the syntax is not supported on ruby 1.8.


journals

Fix committed in r1559. Thanks.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリWiki_1 にセット
  • 対象バージョン0.8_2 にセット

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

いいね!0
いいね!0