View Issue Details

IDProjectCategoryView StatusLast Update
0020921mantisbthtmlpublic2016-06-01 16:08
Reporterscrsc Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Summary0020921: Remove [^] "open in new window" suffix from autogenerated links
Description

With 0011896 the [^] was removed from static links created by mantis.

There is a leftover [^] when html_make_links is on
(which is default: $g_html_make_links = ON):

Each link https://www.mantisbt.org/bugs/view.php?id=11896 will become an [^] added behind with
mantisbt-1.2.19/core/string_api.php
Line 512:
return "<a ${t_url_href}>${p_match[1]}</a> [<a ${t_url_href} target=\"_blank\">^</a>]";

Request is just to return the link, no content change:
return "<a ${t_url_href}>${p_match[1]}</a>";

Steps To Reproduce

Paste any valid xml (with namespace to a mantis note):

e.g.:


<x xmlns:edi='http://ecommerce.example.org/schema'>
<!-- the "edi" prefix is bound to http://ecommerce.example.org/schema
for the "x" element and contents -->
</x>

Submit the Note.

In the mantis view page "copy" the xml and it is invalid now:


<x xmlns:edi='http://ecommerce.example.org/schema'> [^]
<!-- the "edi" prefix is bound to http://ecommerce.example.org/schema [^]
for the "x" element and contents -->
</x>

(to be clear what I mean you need to view this "Steps To Reproduce" via Edit or with $g_html_make_links = OFF)

TagsNo tags attached.
Attached Files
Correct-Note.PNG (11,787 bytes)   
Correct-Note.PNG (11,787 bytes)   
Wrong-Display.PNG (7,670 bytes)   
Wrong-Display.PNG (7,670 bytes)   

Relationships

duplicate of 0020694 closeddregad Add configuration for auto-generated www link target 

Activities

scrsc

scrsc

2016-05-17 08:14

reporter   ~0053166

Added Correct-Note.PNG

Correct-Note-2.PNG (11,787 bytes)   
Correct-Note-2.PNG (11,787 bytes)   
dregad

dregad

2016-05-18 03:30

developer   ~0053176

In MantisBT 1.3, we will no longer display the '[^]' and you will be able to customize the behavior for automatically generated links (see 0020694).

Please download a nightly build from https://mantisbt.org/builds.php if you would like to test this feature.