Brion Vibber 0841fa712e Ticket #1281: JID validation now more or less follows spec instead of calling e-mail validator
Basic splitting/validation code submitted via http://status.net/wiki/XMPP/JID_validation -- Copyright 2009 Patrick Georgi <patrick@georgi-clan.de> Licensed under ISC-L, which is compatible with everything else that keeps the copyright notice intact.

Added PEAR Net_IDNA package to extlib to handle IDN normalization (also used by Validate's email verifier if present).

* added test suite, supplemented my own test cases with JID validation and normalization test cases from libpurple
* follows XMPP rules for validation of name part
* fixes for normalization with non-ASCII names
* will do domain checks if $config['email']['check_domain'] is on, checking for an XMPP-server SRV record or any lookup. (We don't actually need to ping those direct though.)
* some more obscure stringprep validation rules aren't quite followed yet, but we err on the side of permissiveness.
* we still don't actually let you save your address with a resource on it, as we strip resources when looking up users who've sent us presence or message updates. I would recommend saving the outgoing resource as a separate field if/when we add that..?
2010-03-30 17:35:27 -07:00
..
2009-11-18 18:25:36 -08:00
2010-03-30 11:10:29 -07:00
2009-11-04 22:12:01 -08:00
2010-01-24 16:36:04 -08:00
2010-02-05 03:18:43 +00:00
2010-01-24 16:36:05 -08:00
2009-11-15 15:57:52 +01:00
2010-02-16 09:22:02 -08:00
2010-03-28 11:39:56 -04:00
2009-11-18 18:25:36 -08:00
2010-03-04 20:04:44 +01:00
2009-11-19 12:00:25 -05:00
2010-03-04 23:10:27 -05:00
2010-03-01 18:49:39 -05:00
2010-01-26 00:21:05 -05:00
2009-11-21 16:04:20 +01:00
2010-01-10 14:06:52 -08:00
2010-02-20 13:23:08 -05:00
2010-02-11 16:47:47 -05:00
2010-01-27 16:34:18 -05:00