View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008814 | mantisbt | printing | public | 2008-01-26 06:22 | 2009-06-23 15:28 |
Reporter | hardfi | Assigned To | jreese | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.1.0rc3 | ||||
Fixed in Version | 1.2.0rc1 | ||||
Summary | 0008814: problem posting FTP access string | ||||
Description | Hi. If I post FTP string, it is incorrectly parsed. Example: ftp://username:password@www.example.com | ||||
Tags | No tags attached. | ||||
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. |
|
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 accidentallyrepeated twice because the regexp above can cause recursive links in FTP access URLsfor($i=0;$i<2;++$i)$p_string = preg_replace( '/(<a [^<])<a href="([^"])">([^<]*)<\/a>/', '$1$3', $p_string ); |
|
not sure why this is in "Printing" anyway - the problem turns up in normal notes as well |
|
This should be fixed as part of the changes made for 0007790 and 0010228. |
|
this does appear to be fixed. the URL in the Description was a good example of it. it's showing correctly now. |
|