You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Tony Stevenson (JIRA)" <ji...@apache.org> on 2014/07/29 11:59:39 UTC
[jira] [Assigned] (INFRA-8109) In a comment an "https" link is
rendered as plain text, if followed by an "http" one
[ https://issues.apache.org/jira/browse/INFRA-8109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tony Stevenson reassigned INFRA-8109:
-------------------------------------
Assignee: Daniel Gruno
Daniel,
Looks like a bug/feature for comments.a.o
> In a comment an "https" link is rendered as plain text, if followed by an "http" one
> ------------------------------------------------------------------------------------
>
> Key: INFRA-8109
> URL: https://issues.apache.org/jira/browse/INFRA-8109
> Project: Infrastructure
> Issue Type: Bug
> Components: Comments
> Reporter: Konstantin Kolinko
> Assignee: Daniel Gruno
> Priority: Minor
>
> On this page:
> http://tomcat.apache.org/tomcat-8.0-doc/jdbc-pool.html#comment_2790
> I have a comment that contains two links:
> [
> https://issues.apache.org/bugzilla/show_bug.cgi?id=56586#c4
> http://xkcd.com/327/
> ]
> Expected: Both rendered as links
> Actual: The https: link is rendered as plain text, while http: link is rendered as a link.
> Looking in the source code at /infrastructure/trunk/projects/comments/builder.js
> the code in "function buildMessage(str)" function is
> [
> var i = str.indexOf("http://");
> if (i == -1) i = str.indexOf("https://");
> ]
> As the comment text contains an http link, the first indexOf succeeds and the second one is skipped.
--
This message was sent by Atlassian JIRA
(v6.2#6252)