Checks a key before it is saved: no spaces or control characters (they would break the HTTP header), and a sane length. Returns the problem, or undefined when the key looks fine. The message never holds the key.
undefined
Checks a key before it is saved: no spaces or control characters (they would break the HTTP header), and a sane length. Returns the problem, or
undefinedwhen the key looks fine. The message never holds the key.