Project

General

Profile

Actions

Defect #39581

open

problem with link displaying

Added by Pavel Silhan 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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
Actions #1

Updated by William Dubois 3 months ago

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.

Actions

Also available in: Atom PDF