View Issue Details

IDProjectCategoryView StatusLast Update
400RackTablesdefaultpublic2012-01-01 06:43
Reporteraltpeter Assigned Toadoom42  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.0 
Target Version0.19.11Fixed in Version0.19.11 
Summary400: Parsing of links and emails should be in reverse priority
DescriptionHi,

When a comment field contains an URL, it is automatically parsed and made clickable. The same happens for an email address. So far, so good.
But, when an URL contains an @ because of integrated user:pass part, it clobbers output.
Additional InformationPut this into your comment field:

http://www.test.de/
email@test.de
http://user:pass@www.test.de/

This results in this:

http://www.test.de/ [^]
email@test.de
pass@www.test.de/">http://user:pass@www.test.de/ [pass@www.test.de/" target="_blank">^]
TagsNo tags attached.

Activities

infrastation

infrastation

2011-02-22 19:05

administrator   ~0000268

The function in question was contributed with a comment, that it was copied from Mantis source code with little to none changes. Right now I see, that Mantis' version of the function has developed a bit, but the issue you are reporting is actual for Mantis as well (at least in the version 1.1.8 we are using for this bug, note the formatting issues). I will check if a newer Mantis version handles this better.
altpeter

altpeter

2011-10-20 12:08

reporter   ~0000455

This bug is still present in 0.19.10 - is there any news on that? :)
infrastation

infrastation

2011-10-20 13:26

administrator   ~0000457

Ok, do you have a working patch?
adoom42

adoom42

2012-01-01 06:43

administrator   ~0000501

I replaced the Mantis regex with some copylefted code found online. It appears to work fine for all cases except IPv6 URLs. I consider it acceptable because the Mantis code didn't handle IPv6 URLs, either.

Issue History

Date Modified Username Field Change
2011-02-16 15:16 altpeter New Issue
2011-02-22 19:05 infrastation Note Added: 0000268
2011-02-22 19:07 infrastation Status new => assigned
2011-02-22 19:07 infrastation Assigned To => infrastation
2011-02-22 19:08 infrastation Status assigned => acknowledged
2011-10-20 12:08 altpeter Note Added: 0000455
2011-10-20 13:26 infrastation Note Added: 0000457
2012-01-01 06:43 adoom42 Note Added: 0000501
2012-01-01 06:43 adoom42 Assigned To infrastation => adoom42
2012-01-01 06:43 adoom42 Status acknowledged => closed
2012-01-01 06:43 adoom42 Resolution open => fixed
2012-01-01 06:43 adoom42 Fixed in Version => 0.19.11
2012-01-01 06:43 adoom42 Target Version => 0.19.11