author | Kim Alvefur <zash@zash.se> |
Mon, 14 May 2012 18:04:32 +0200 | |
changeset 4878 | 80ab7c50608d |
parent 4877 | 6f5b53cb3565 |
child 4879 | 45bb378a4a98 |
prosodyctl | file | annotate | diff | comparison | revisions |
--- a/prosodyctl Mon May 14 17:58:51 2012 +0200 +++ b/prosodyctl Mon May 14 18:04:32 2012 +0200 @@ -640,6 +640,9 @@ end nv = show_prompt(("%s (%s):"):format(k, nv or v)); nv = (not nv or nv == "") and v or nv; + if nv:find"[\192-\252][\128-\191]+" then + conf.req.string_mask = "utf8only" + end conf.distinguished_name[k] = nv ~= "." and nv or nil; end local conf_file = io.open(conf_filename, "w");