rcube_user::email2user and rcube_user::user2email select incorrect address from virtuser file
|Reported by:||markscarbrough||Owned by:|
The regular expressions used in the functions rcube_user::email2user and rcube_user::user2email are too simplistic and can return the wrong value. Consider the following table:
If I log in as user 'test' for the first time, my email will be set incorrectly to 'btest@…'. The regular expressions must also test for the whitespace that delimits values. The attached patch fixes the problem for me.