<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi <br>
<br>
I am using RT3.8.8<br>
<br>
I have a CF where the "Link value to" contains <br>
<blockquote><a class="moz-txt-link-freetext" href="http://cvsweb/__CustomField__">http://cvsweb/__CustomField__</a><br>
</blockquote>
RT generates a link but if I click on the link I get a 404 error
using Firefox.<br>
I am pretty sure that I saw this work when I first set it up with RT
3.6<br>
<br>
If I look at the generated source of the page, I see<br>
<pre><<span class="start-tag">td</span><span class="attribute-name"> class</span>=<span class="attribute-value">"value"</span>>
<<span class="start-tag">a</span><span class="attribute-name"> href</span><span>="</span><a href="view-source:http://cvsweb.eve/cgi-bin/cvsweb/qa%2Fxl%2Feve%2FzTopBuild_force_dve_source_vector">http://cvsweb/aaaa%2Fbbbb%2Fcccc%2Fdddd</a><span>" </span><span class="attribute-name">target</span>=<span class="attribute-value">"_new"</span>> aaaa/bbbb/cccc/dddd</<span class="end-tag">a</span>>
</<span class="end-tag">td</span>>
The code is in share/html/Elements/ShowCustomFields
my $linked = $value->LinkValueTo;
if ( defined $linked && length $linked ) {
my $linked = $m->interp->apply_escapes( $linked, 'h' );
$m->out('<a href="'. $linked .'" target="_new">');
}
The code for RT3.6.10 shows
my $linked = $cf->LinkValueTo;
if ( $linked ) {
$m->out('<a href="'. $value->LinkValueTo .'" target="_new">');
}
How can I tell Mason not to escape '/' and still escape the rest ?
In fact, I am uncertain why '/' gets escaped
because my understanding of Mason is that 'h' refers to basic_html_escape
which is supposed to escape only '&', '>', '<', and '"'.</pre>
<pre>Thanks
Gerard
<span class="s"></span></pre>
<pre id="line9"></pre>
</body>
</html>