ZF-11796: Missing IDN validation for .si domain
Description
Zend_Validate does not validate IDN domains for .si. Document for valid chars can be found http://www.register.si/idn/znaki.html Max length for domain is 63 chars and minimum is 2.
Zend_Validate does not validate IDN domains for .si. Document for valid chars can be found http://www.register.si/idn/znaki.html Max length for domain is 63 chars and minimum is 2.
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2011-10-05T15:15:18.000+0000
Could you provide a few examples of both valid and invalid .si IDNs which we could use to develop a test of the validator? Here is what I have so far:
Unit test:
Prototype Fix:
Posted by Thomas Weidner (thomas) on 2011-10-05T18:14:19.000+0000
Changed from bug to improvement as IDN rules are relativ new for SI domains
Posted by Thomas Weidner (thomas) on 2011-10-08T06:19:51.000+0000
Added to ZF2 with GH-469
Posted by Adam Lundrigan (adamlundrigan) on 2011-10-17T14:14:26.000+0000
Should this also be committed to ZFv1?
Posted by Thomas Weidner (thomas) on 2011-10-17T19:36:12.000+0000
Feel free to backport. But note that your fix and unit test are incomplete. Please use GH-469 when you want to backport this improvement
Posted by Adam Lundrigan (adamlundrigan) on 2011-10-18T16:00:51.000+0000
Backported GH-469 into ZFv1. Fixed in trunk r24513 Merged to release-1.11 in r24514