View Issue Details

IDProjectCategoryView StatusLast Update
0002976mantisbtbugtrackerpublic2003-12-13 04:45
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Versiongit trunk 
Summary0002976: Incorrect handling of URLs
Description

Mantis detects urls and hyperlink them to the address. This works fine when the address is included within the text: http://www.hotmail.com. However, the problem is when you have a url following by an empty line:

http://www.hotmail.com

the above address will be incorrect.

TagsNo tags attached.

Activities

jfitzell

jfitzell

2003-02-20 19:24

reporter   ~0003765

hmm... it looks correct to me... what is incorrect about it?

vboctor

vboctor

2003-02-20 22:54

manager   ~0003769

Yes, it is working in this version, but in the cvs head version at home, it is not working properly.

vboctor

vboctor

2003-02-21 02:40

manager   ~0003772

Fixed in CVS. Will be included in 0.18.0a3. The problem was that the '(smallerthan)br' was consider part of the link.

Related Changesets

MantisBT: master 5b261624

2003-02-20 20:40

vboctor


Details Diff
M core/string_api.php
M doc/ChangeLog
- Fix 0002976: Incorrect handling of URLs. The problem was that when a url is at
the end of a line, the string insert hrefs function takes the url as
"http://www.hotmail.com<br". This was fixed by excluding the < from the valid
characters of the link.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1982 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0002976
mod - doc/ChangeLog Diff File
mod - core/string_api.php Diff File