www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Stevenson (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (INFRA-8109) In a comment an "https" link is rendered as plain text, if followed by an "http" one
Date Tue, 29 Jul 2014 09:59:39 GMT

     [ 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)

Mime
View raw message