Project

General

Profile

Actions

Defect #39581

open

problem with link displaying

Defect #39581: problem with link displaying

Added by Pavel Silhan almost 3 years ago. Updated 20 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Resolution:
Affected version:

Description

found a problem with copied link displaying in Redmine - with some chars combination it shows > as > so link doesn't work. The problem apeears when there is no space after "<" and "." after ">":

link < https://www.seznam.cz>.
link <https://www.seznam.cz>.
nolink <blablabla>.
link <https://www.seznam.cz>

link < https://www.seznam.cz>.
link <https://www.seznam.cz&gt;.
nolink <blablabla>.
link <https://www.seznam.cz>

tested on 4.2.10 primarily but shows on other versions incl.version 5 too


Files

redmine tests.png (34.6 KB) redmine tests.png William Dubois, 2023-12-07 15:30

Updated by William Dubois almost 3 years ago Actions #1

Hello, I looked into the regex that's taking care of the transformation from a string to a link, and it might be the expected behavior. For me, a simple space before the ">" is enough to make the link work. This is the case in version 5.0.6. In the picture I attached, you can see the behavior on my build (5.0.6). The chevron at the start will always render the string unclickable if there's no space, but the chevron at the end has a different behavior. Putting no space between it and the link will stick it to the link, and it will look like the link is clickable when it isn't. Copy-pasting this bugged link looks like this : "http://www.google.com%3E". The ">" is replaced by "%3E" on my end, similar to ">" for M. Pavel just above. What we need to know is if this is the intended behavior or just a mistake in the regex.

Updated by Philippe Cloutier 20 days ago Actions #2

Thanks for reporting, I'm afraid this persists (at least in this instance).

The Description is not displayed properly; "it shows > as >" should read “it shows > as &gt;”.
It took me a while to understand this bug. It seems that for this to happen, the final chevron needs to be immediately followed by a (actual) character (such as a period, comma or letter).

Please clarify the title. I suggest:

A URL between chevrons may generate a broken link with “>” displayed as “&gt;” (Textile)

This note (and any other I add to this ticket) is dedicated to the public domain (under the terms of the CC0 1.0).

Actions

Also available in: PDF Atom