Use right uid string.
Correct format :
name (comment) <email>
Was :
name <email> (comment)
3ac566fbf was wrong.
This commit is contained in:
@@ -323,9 +323,10 @@ const Error GpgMEWorker::ExportPublicKey(const char* pattern, string& buffer)
|
||||
|
||||
string GpgMEWorker::MakeUidString(const string& name, const string& email, const string& comment)
|
||||
{
|
||||
string uid = name + SPACE
|
||||
+ LESSTHAN + email + MORETHAN;
|
||||
string uid = name;
|
||||
if (!comment.empty())
|
||||
uid += SPACE + LEFT_PARENTHESIS + comment + RIGHT_PARENTHESIS;
|
||||
uid += SPACE
|
||||
+ LESSTHAN + email + MORETHAN;
|
||||
return uid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user