mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* gpg.c (add_notation_data): Fix reversed logic for isascii check when
adding notations. Noted by Christian Biere.
This commit is contained in:
parent
c37453211c
commit
1736866b5b
2 changed files with 4 additions and 1 deletions
|
@ -4029,7 +4029,7 @@ add_notation_data( const char *string, int which )
|
|||
/* we only support printable text - therefore we enforce the use
|
||||
* of only printable characters (an empty value is valid) */
|
||||
for( s++; *s ; s++ ) {
|
||||
if ( isascii (*s) )
|
||||
if ( !isascii (*s) )
|
||||
highbit = 1;
|
||||
else if (iscntrl(*s)) {
|
||||
log_error(_("a notation value must not use"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue