SIGN IN SIGN UP

Merge from 3.1.

The fix was already committed to 3.2, but I merged two small changes
recommended by Raymond while I was working on the 2.7 patch to ease
future merges.
É
Éric Araujo committed
bbcfc1f2d926c1198b4c23a6e5640e3f3aee9d98