View Issue Details

IDProjectCategoryView StatusLast Update
0008814mantisbtprintingpublic2009-06-23 15:28
Reporterhardfi Assigned Tojreese  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.1.0rc3 
Fixed in Version1.2.0rc1 
Summary0008814: problem posting FTP access string
Description

Hi. If I post FTP string, it is incorrectly parsed. Example:

ftp://username:password@www.example.com

TagsNo tags attached.

Relationships

related to 0007790 closedjreese Links protected by brackets are not processed properly 
related to 0010228 closedjreese No way to avoid or escape the rendering plugin for part of a text 

Activities

vboctor

vboctor

2008-01-27 15:29

manager   ~0016848

Last edited: 2008-01-27 15:30

Looks like something we should fix. The fix should hyper link the whole FTP link the same way HTTP links are hyper linked. Patches are welcome.

kae_verens

kae_verens

2009-01-21 12:13

reporter   ~0020673

Last edited: 2009-01-21 12:14

not sure how to do patches.

my solution was to edit core/string_api.php and change the string_insert_hrefs() function so it "fixes" links that it has broken.

Place this before the "return $p_string" line and it works:

Undo broken FTP access links (and any other recursive links) which were created accidentally

repeated twice because the regexp above can cause recursive links in FTP access URLs

for($i=0;$i<2;++$i)$p_string = preg_replace( '/(<a [^<])<a href="([^"])">([^<]*)<\/a>/', '$1$3', $p_string );

kae_verens

kae_verens

2009-01-22 07:19

reporter   ~0020684

not sure why this is in "Printing" anyway - the problem turns up in normal notes as well

jreese

jreese

2009-04-17 09:09

reporter   ~0021588

This should be fixed as part of the changes made for 0007790 and 0010228.

kae_verens

kae_verens

2009-04-17 09:15

reporter   ~0021589

this does appear to be fixed. the URL in the Description was a good example of it. it's showing correctly now.