Commits ------- 159fc0e [Validator] Added symbols to IDNs validation c827faf [Validator] Add support for IDNs and custom TLDs Discussion ---------- [Validator] Add support for IDNs and custom TLDs Minor changes to allow for IDNs and [custom TLDs](http://news.softpedia.com/news/ICANN-Approves-New-Custom-Generic-Top-Level-Domains-Like-google-bank-206977.shtml). This is the only sane way to support everything in a timeless manner. --------------------------------------------------------------------------- by stealth35 at 2011/06/20 04:32:09 -0700 maybe it should be check the host with idn_to_ascii (if function exists, maybe it's should recreate un punycode en/decoder in the stub) --------------------------------------------------------------------------- by mvrhov at 2011/06/20 04:40:10 -0700 /me :faceslap. Haven't seen the link in PR --------------------------------------------------------------------------- by Seldaek at 2011/06/20 04:40:40 -0700 @mvrhov: Yup, that's what pushed me to reconsider adding this. @stealth35: I'm not sure if this is needed. I don't want this to be too strict, with another validator or with an extra option I think we can make a check that the domain actually exists, or do a GET / on it or something, but this just checks validity of the syntax. --------------------------------------------------------------------------- by stealth35 at 2011/06/20 04:48:05 -0700 I understand :) what about funny IDN like : [☎.com] (http://xn--y3h.com/) ? --------------------------------------------------------------------------- by Seldaek at 2011/06/20 04:53:19 -0700 @stealth35: Fixed --------------------------------------------------------------------------- by stealth35 at 2011/06/20 04:56:18 -0700 it's seem great,for acceptable chars [RFC] (http://www.faqs.org/rfcs/rfc3490.html) said (with UseSTD3ASCIIRules option) : (a) Verify the absence of non-LDH ASCII code points; that is, the absence of 0..2C, 2E..2F, 3A..40, 5B..60, and 7B..7F.
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|