プロジェクト

全般

プロフィール

Vote #63491

完了

Parsing ftp URL

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

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

0%

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

説明

Patch Redmine 0.7.1 for Parsing ftp URLs

Index: lib/redmine/wiki_formatting.rb
===================================================================
--- lib/redmine/wiki_formatting.rb  (revision 1496)
+++ lib/redmine/wiki_formatting.rb  (working copy)
@@ -126,6 +126,7 @@
                         )
                         (
                           (?:https?://)|           # protocol spec, or
+                          (?:ftp://)|              # 
                           (?:www\.)                # www.*
                         )
                         (

journals

Applied in r1577.
--------------------------------------------------------------------------------
I think the regex for parsing ftp:// links is a bit too aggressive as it tears apart sftp:// links.

The less aggressive approach would be to watch for whitespace before the ftp:// so the patch should be:

<pre>
Index: lib/redmine/wiki_formatting.rb
===================================================================
--- lib/redmine/wiki_formatting.rb (revision 1496)
+++ lib/redmine/wiki_formatting.rb (working copy)
@@ -126,6 +126,7 @@
)
(
(?:https?://)| # protocol spec, or
+ (?:\sftp://)| #
(?:www\.) # www.*
)
(

</pre>

--------------------------------------------------------------------------------
Kevin Light wrote:
> I think the regex for parsing ftp:// links is a bit too aggressive as it tears apart sftp:// links.
>
> The less aggressive approach would be to watch for whitespace before the ftp:// so the patch should be:
>
> [...]

You can use "inline code" to disable parsing. For example: @sftp://myserv@
--------------------------------------------------------------------------------
sftp and ftps proto are now properly turned into links (r2018).
--------------------------------------------------------------------------------

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

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

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

いいね!0
いいね!0