Commit Graph

7 Commits

Author SHA1 Message Date
Rafael Dantas Justo 0ec31bb825 encode function should return nil when an invalid character is detected and
ToPunycode function should return an empty string when there's an invalid
domain name
2015-07-16 13:02:51 -03:00
Rafael Dantas Justo 340d862d2f check label for invalid code points according to RFC 5892, appendix B.1 2015-07-15 15:13:19 -03:00
Alex Sergeyev 3373659843 Addressed #198, correct decoding should only look at last separator. 2015-04-03 23:49:35 -04:00
Alex Sergeyev c37add8d9e Prevented crash on empty string to our funcs +...
* changed encodeBytes to encode and decodeBytes to decode
* fixed few comments
2014-09-15 09:02:51 -04:00
Alex Sergeyev 950dac05e5 Changed label splitting and fixed behavior for final period in names. 2014-09-15 08:23:08 -04:00
Alex Sergeyev 61db5487dd Updated Punycode funcs
* docstrings
* changes to handling invalid punycode names
* updated tests
2014-09-13 22:11:53 -04:00
Alex Sergeyev a906600891 Moved things to subdir and adding functions to convert strings. 2014-09-12 07:52:33 -04:00