Switch from Unicode NFKC->NFC (#3782)

This commit is contained in:
Roland Bracewell Shoemaker 2018-06-28 18:52:00 -07:00 committed by Jacob Hoffman-Andrews
parent e27f370fd3
commit 670ab0a141
2 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ func (pa *AuthorityImpl) WillingToIssue(id core.AcmeIdentifier) error {
if err != nil {
return errMalformedIDN
}
if !norm.NFKC.IsNormalString(ulabel) {
if !norm.NFC.IsNormalString(ulabel) {
return errMalformedIDN
}
} else if idnReservedRegexp.MatchString(label) {

View File

@ -98,7 +98,7 @@ func TestWillingToIssue(t *testing.T) {
{`example.internal`, errNonPublic},
// All-numeric final label not okay.
{`www.zombo.163`, errNonPublic},
{`xn--109-3veba6djs1bfxlfmx6c9g.xn--f1awi.xn--p1ai`, errMalformedIDN}, // Not in Unicode NFKC
{`xn--109-3veba6djs1bfxlfmx6c9g.xn--f1awi.xn--p1ai`, errMalformedIDN}, // Not in Unicode NFC
{`bq--abwhky3f6fxq.jakacomo.com`, errInvalidRLDH},
}