Fix the 'Norbert Bug'.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 24 Feb 2011 20:26:17 +0000 (21:26 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 24 Feb 2011 20:33:49 +0000 (21:33 +0100)
commit6876570a57daa0ae5c43cfda0a4edfb039b241c0
treecdfc9064155449cf6ef485e464fd6246a36f4f81
parent91b9255bf67fa0f9d7093a9930d20a5327972270
Fix the 'Norbert Bug'.

This bug had two sources:
 - The first source is the fact that we passed a string instead of a list
   as the members argument of mass_subscribe

 - The second source is the fact that python is a stupid languages and
   iterating on a string works, it just enumerates the string character
   per character.

Our founders attributed themselves one-letter email aliases(like 'n' for
Norbert L. and 'y' for Yann B.) and as soon as a list created through the
validation process contained an email with a 'n' (this happen quite often
when the email contains polytechnique), the enumeration of the string
triggered the subscription of 'n@polytechnique.org'.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
bin/lists.rpc.py
include/validations/listes.inc.php