View Issue Details

IDProjectCategoryView StatusLast Update
0006576mantisbtbugtrackerpublic2006-02-04 05:44
Reporterastrolox Assigned Toryandesign  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Product Version0.19.4 
Summary0006576: Upper case (Capitol) letters break HTML Links
Description

With the html_make_links feature turned ON all URLs in descriptions, etc are meant to be made clickable links.

However only part of the URL is detected and made clickable if the link has a capitol letter in it (very common when linking to a wiki ).

Additional Information

Example:

http://en.wikipedia.org/wiki/Main_Page

Fix:

On line 295 of file core/string_api.php change add A-Z next to a-z inside the regular expression. Diff file attached.

TagsNo tags attached.
Attached Files
string_api.php.diff (245 bytes)   
295c295
<               $p_string = preg_replace( '/([http|irc|ftp|https]{2,}:\/\/([a-z0-9_-]|\/|\@|:{0,1}\.{0,1}){1,})/',
---
>               $p_string = preg_replace( '/([http|irc|ftp|https]{2,}:\/\/([a-zA-Z0-9_-]|\/|\@|:{0,1}\.{0,1}){1,})/',
string_api.php.diff (245 bytes)   

Relationships

duplicate of 0005220 closedgrangeway url parser makes a few mistakes 
related to 0006583 closedryandesign URL handling is broken. 

Activities

ryandesign

ryandesign

2006-01-12 12:17

reporter   ~0011918

This was fixed a long time ago in the 1.0 branch. Try 1.0.0rc4, or wait for the final 1.0.0 release, which will hopefully be "soon."