Defect #39581
openproblem with link displaying
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>.
nolink <blablabla>.
link <https://www.seznam.cz>
tested on 4.2.10 primarily but shows on other versions incl.version 5 too
Files
Updated by William Dubois almost 3 years ago
- File redmine tests.png redmine tests.png added
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
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 >”.
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 “>” (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).