Defect #39581
openproblem with link displaying
0%
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 12 months 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.