www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Kolinko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (INFRA-8109) In a comment an "https" link is rendered as plain text, if followed by an "http" one
Date Mon, 28 Jul 2014 09:00:55 GMT
Konstantin Kolinko created INFRA-8109:
-----------------------------------------

             Summary: 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
            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