https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292008-06-23T16:51:39ZRedmineRedmine - Feature #1514: Parsing ftp URLhttps://www.redmine.org/issues/1514?journal_id=35082008-06-23T16:51:39ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Category</strong> set to <i>Wiki</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Target version</strong> set to <i>0.8</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Applied in <a class="changeset" title="Turn ftp urls into links (#1514)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1577">r1577</a>.</p> Redmine - Feature #1514: Parsing ftp URLhttps://www.redmine.org/issues/1514?journal_id=38472008-07-11T20:03:20ZKevin Light
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>I think the regex for parsing <a class="external" href="ftp:// links">ftp:// links</a> is a bit too aggressive as it tears apart <a class="external" href="sftp:// links">sftp:// links</a>.</p>
<p>The less aggressive approach would be to watch for whitespace before the <a class="external" href="ftp:// so">ftp:// so</a> the patch should be:</p>
<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> Redmine - Feature #1514: Parsing ftp URLhttps://www.redmine.org/issues/1514?journal_id=38802008-07-14T05:52:44ZStanislav German-Evtushenko
<ul></ul><p>Kevin Light wrote:</p>
<blockquote>
<p>I think the regex for parsing <a class="external" href="ftp:// links">ftp:// links</a> is a bit too aggressive as it tears apart <a class="external" href="sftp:// links">sftp:// links</a>.</p>
<p>The less aggressive approach would be to watch for whitespace before the <a class="external" href="ftp:// so">ftp:// so</a> the patch should be:</p>
<p>[...]</p>
</blockquote>
<p>You can use "inline code" to disable parsing. For example: <code>sftp://myserv</code></p> Redmine - Feature #1514: Parsing ftp URLhttps://www.redmine.org/issues/1514?journal_id=55812008-11-11T14:23:47ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>sftp and ftps proto are now properly turned into links (<a class="changeset" title="Turn ftps and sftp proto into links (#1514)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/2018">r2018</a>).</p>