diff options
author | Kim Alvefur <zash@zash.se> | 2019-09-10 18:17:13 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-09-10 18:17:13 +0200 |
commit | 833d955c39a5bf1036e507f85d9893664efa6c7f (patch) | |
tree | 8b40e302983b87bf51834427e573c64e51fe1d56 /util/x509.lua | |
parent | 4caae044218601c3abf448776a6c0909f9135bd8 (diff) | |
download | prosody-833d955c39a5bf1036e507f85d9893664efa6c7f.tar.gz prosody-833d955c39a5bf1036e507f85d9893664efa6c7f.zip |
util.x509: Only collect commonNames that pass idna
Weeds out "Example Certificate" and the like, which are uninteresting
for this function.
Diffstat (limited to 'util/x509.lua')
-rw-r--r-- | util/x509.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/x509.lua b/util/x509.lua index c4001ecb..82f8285d 100644 --- a/util/x509.lua +++ b/util/x509.lua @@ -238,7 +238,7 @@ local function get_identities(cert) --> set of names local dn = subject[i]; if dn.oid == oid_commonname then local name = nameprep(dn.value); - if name then + if name and idna_to_ascii(name) then names[name] = true; end end |