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 GpgMEWorker::MakeUidString(const string& name, const string& email, const string& comment)
|
||||||
{
|
{
|
||||||
string uid = name + SPACE
|
string uid = name;
|
||||||
+ LESSTHAN + email + MORETHAN;
|
|
||||||
if (!comment.empty())
|
if (!comment.empty())
|
||||||
uid += SPACE + LEFT_PARENTHESIS + comment + RIGHT_PARENTHESIS;
|
uid += SPACE + LEFT_PARENTHESIS + comment + RIGHT_PARENTHESIS;
|
||||||
|
uid += SPACE
|
||||||
|
+ LESSTHAN + email + MORETHAN;
|
||||||
return uid;
|
return uid;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user