mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-23 15:07:03 +01:00
Relax mailbox name checking. Fixes bug#1315.
This commit is contained in:
parent
d9e2dcc1a9
commit
71e7a1644e
@ -1,5 +1,8 @@
|
||||
2011-02-03 Werner Koch <wk@g10code.com>
|
||||
|
||||
* misc.c (has_invalid_email_chars): Relax mailbox name checking.
|
||||
Fixes bug#1315.
|
||||
|
||||
* sign.c (do_sign): Use openpgp_pk_algo_name.
|
||||
|
||||
* keygen.c (ask_algo): Show ECC algos only in expert mode. Add
|
||||
|
@ -1289,7 +1289,8 @@ has_invalid_email_chars (const char *s)
|
||||
continue; /* We only care about ASCII. */
|
||||
if ( *s == '@' )
|
||||
at_seen=1;
|
||||
else if ( !at_seen && !( !!strchr( valid_chars, *s ) || *s == '+' ) )
|
||||
else if ( !at_seen && !(strchr (valid_chars, *s)
|
||||
|| strchr ("!#$%&'*+/=?^`{|}~", *s)))
|
||||
return 1;
|
||||
else if ( at_seen && !strchr( valid_chars, *s ) )
|
||||
return 1;
|
||||
@ -1550,5 +1551,3 @@ ecdsa_qbits_from_Q (unsigned int qbits)
|
||||
qbits /= 2;
|
||||
return qbits;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user