Skip to Content.
Sympa Menu

en - Re: Re: [sympa-users] hyperlinks on list homepage stripped out by wwsympa?

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Brendan Chard <address@concealed>
  • To: "address@concealed" <address@concealed>
  • Subject: Re: Re: [sympa-users] hyperlinks on list homepage stripped out by wwsympa?
  • Date: Tue, 17 Jan 2012 14:01:31 -0500

Bummer, unfortunately all that does is change it to output the HTML as raw text.



Brendan Chard

e: address@concealed
w: http://www.themodernfirm.com
p: 800-741-8034 ext 801
f: 888-605-0495

Schedule a Call:



On Tue, Jan 17, 2012 at 12:11 PM, Geoff Mayes <address@concealed> wrote:
Hi Brendan,

I'm new to Sympa, but I've mucked with it a fair bit so hopefully my suggestion is helpful and not something trivial that you (and most everyone else on this list) already know.

bin/wwsympa.fcgi sets 'homepage_content' and 'info_content' to 1.  (I assume you're running Sympa over fastcgi and, if not, that Sympa still wraps non-fastcgi calls around wwsympa.fcgi.)  I'm running 6.1.7 and these parameters are set on lines 1086-1087.  It looks like the values are hard-coded into bin/wwsympa.fcgi so setting them in /etc/sympa.conf or /etc/wwsympa.conf would have no effect.  If your version of Sympa has these parameters elsewhere, you can 'cd' into various core Sympa directories and then grep around (e.g. cd sympa/bin; grep -ri homepage_content).

I hope you can just set those parameters to 0 and have everything work as you'd like.

Good luck, Geoff


> -----Original Message-----
> From: address@concealed [mailto:address@concealed] On
> Behalf Of address@concealed
> Sent: Friday, January 13, 2012 7:38 PM
> To: address@concealed
> Subject: Re: Re: [sympa-users] hyperlinks on list homepage stripped out by
> wwsympa?
>
> I was searching through the archives as I am having the same issue that Adam
> raised back last April... most HTML is being stripped from my list homepages.
> However, when I look at my my tools.pm file, as David suggested, it already
> appears to have the correction suggested.  I'm running 6.0.1 and in tools.pm I
> have:
>
> sub _create_xss_parser {
>     my %parameters = @_;
>     &do_log('debug3','tools::_create_xss_parser(%s)',$parameters{'robot'});
>     my $hss = HTML::StripScripts::Parser->new({ Context => 'Document',
>                                               AllowSrc        => 1,
>                                               AllowHref       => 1,
>                                               AllowRelURL     => 1,
>                                               EscapeFiltered  => 1,
>                                               Rules => {
>                                                   '*' => {
>                                                       src ="> > '^http://'.&Conf::get_robot_conf($parameters{'robot'},'http_host'),
>                                                   },
>                                               },
>                                           });
>     return $hss;
> }
>
>
> When I go into Sympa Admin and tell it to Dump Vars I notice that towards
> the bottom there is this value:
>
> htmlToFilter=
>         homepage_content=1
>         info_content=1
>
> It seems like if I could change those values to 0 that might fix my problem,
> but I can't find where those variables are set.
>
> Any guidance is appreciated.
>
> -Brendan
>
>
>





Archive powered by MHonArc 2.6.19+.

Top of Page