Skip to Content.
Sympa Menu

en - [sympa-users] Adding images to a list info page

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Hiroshi Hasebe <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] Adding images to a list info page
  • Date: Tue, 15 Feb 2011 00:28:37 +0900 (JST)

I was wondering why <img> tags didn't work in customized list info pages,
i.e.,
Admin -> Customizing -> HTML pages -> edit (-> add an <img> tag)
and just came across the following statement in the bin/tools.pm file:
src => '^http://'.&Conf::get_robot_conf($parameters{'robot'},'http_host'),

The attached is a one-liner fix that I made. The <img> src attribute won't be
filtered out as long as the image file resides on the same host.
Since the "http_host" parameter is used to retrieve the base URL of a Sympa
host, the value always starts with an "http://"; (or "https://";) prefix.
I hope I'm not mistaken... I'm just another happy Sympa user.

Regards.

Hiroshi Hasebe
diff -crb sympa-6.1.4/src/lib/tools.pm sympa-6.1.4.tmp/src/lib/tools.pm
*** sympa-6.1.4/src/lib/tools.pm Wed Nov 17 00:48:53 2010
--- sympa-6.1.4.tmp/src/lib/tools.pm Mon Feb 14 23:11:45 2011
***************
*** 113,119 ****
AllowSrc => 1,
Rules => {
'*' => {
! src =>
'^http://'.&Conf::get_robot_conf($parameters{'robot'},'http_host'),
},
},
});
--- 113,119 ----
AllowSrc => 1,
Rules => {
'*' => {
! src =>
'^'.&Conf::get_robot_conf($parameters{'robot'},'http_host'),
},
},
});



Archive powered by MHonArc 2.6.19+.

Top of Page