Skip to Content.
Sympa Menu

devel - [sympa-dev] Re: Bug ou feature?

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Aumont - Comite Reseaux des Universites <address@concealed>
  • To: Christian Perrier <address@concealed>
  • Cc: address@concealed
  • Subject: [sympa-dev] Re: Bug ou feature?
  • Date: Mon, 18 Oct 1999 08:31:37 +0200

Christian perrier reports the following bug :

When defining editor email, spaces at the end of the line are part
of the email editor attribut so all mails coming from this editor
are forward to editors where it should be sent to subscribers.

This bug is part of List::load_admin_file :

the original buggy code :
$* = 1; $/ = '';
...
$user->{'email'} = $1 if (/^\s*email\s+(.+)\s*$/o);


A successful patch I test (but don't understand):

$* = 1; $/ = '';
...
$user->{'email'} = $1 if (/^\s*email\s+(.+)\s*$/o);
$user->{'email'} =~ s/\s*$// ;

Is there any perl guru who can explain that ?



Archive powered by MHonArc 2.6.19+.

Top of Page