Gossamer Forum
Quote Reply
Global Output Problem
Hi,

When I try using globals in GForum, I'm running into the problem that html code brackets are getting returned as:

<select name>

rather than:

<select name>

For example when I do the following test global:

sub {
my $output = q~<select name>~;
return $output;
}

when I place the global tag <%test%> on the user_signup template, the html code gets returned as:

&lt;select name&gt;

rather than:

<select>

Does anyone know how I can get the globals to return the correct brackets?

--Frank
Quote Reply
Re: [FrankM] Global Output Problem In reply to
Return it as a reference, ie. return \$output; and it won't html escape your output.

Adrian
Quote Reply
Re: [brewt] Global Output Problem In reply to
Thanks very much, I really appreciate it. That solved the problem.

--Frank