You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Konstantin Kolinko (JIRA)" <ji...@apache.org> on 2014/07/28 11:00:55 UTC
[jira] [Created] (INFRA-8109) In a comment an "https" link is
rendered as plain text, if followed by an "http" one
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)