mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-22 19:58:29 +01: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
@ -1,5 +1,8 @@
|
|||||||
2006-02-23 David Shaw <dshaw@jabberwocky.com>
|
2006-02-23 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* gpg.c (add_notation_data): Fix reversed logic for isascii check
|
||||||
|
when adding notations. Noted by Christian Biere.
|
||||||
|
|
||||||
* options.h, keyserver.c (add_canonical_option): New.
|
* options.h, keyserver.c (add_canonical_option): New.
|
||||||
(parse_keyserver_options): Moved from here.
|
(parse_keyserver_options): Moved from here.
|
||||||
(parse_keyserver_uri): Use it here so each keyserver can have some
|
(parse_keyserver_uri): Use it here so each keyserver can have some
|
||||||
|
@ -4029,7 +4029,7 @@ add_notation_data( const char *string, int which )
|
|||||||
/* we only support printable text - therefore we enforce the use
|
/* we only support printable text - therefore we enforce the use
|
||||||
* of only printable characters (an empty value is valid) */
|
* of only printable characters (an empty value is valid) */
|
||||||
for( s++; *s ; s++ ) {
|
for( s++; *s ; s++ ) {
|
||||||
if ( isascii (*s) )
|
if ( !isascii (*s) )
|
||||||
highbit = 1;
|
highbit = 1;
|
||||||
else if (iscntrl(*s)) {
|
else if (iscntrl(*s)) {
|
||||||
log_error(_("a notation value must not use"
|
log_error(_("a notation value must not use"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user