mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 07:33:25 +00:00
commit: Allow spaces inside email addresses
Core Git doesn't care when people use spaces in the email address, even though this kind of foolery receives the capital punishment in several states of the USA. We must obey.
This commit is contained in:
parent
ccd59372d4
commit
e053c911cf
@ -210,7 +210,7 @@ int git_signature__parse(git_signature *sig, const char **buffer_out,
|
||||
return git__throw(GIT_EOBJCORRUPTED, "Failed to parse signature. Ended unexpectedly");
|
||||
|
||||
/* verify email */
|
||||
if (strpbrk(sig->email, "><\n ") != NULL)
|
||||
if (strpbrk(sig->email, "><\n") != NULL)
|
||||
return git__throw(GIT_EOBJCORRUPTED, "Failed to parse signature. Malformed e-mail");
|
||||
|
||||
if (git__strtol32(&time, buffer, &buffer, 10) < GIT_SUCCESS)
|
||||
|
Loading…
Reference in New Issue
Block a user