diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-06-28 21:52:41 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-06-28 21:52:41 +0400 |
commit | e053c911cfe36bca9be272e9cdc4af9ae24c76c9 (patch) | |
tree | 7d1f52b2546d0d4a34c67e40540cb6e43d5ccc43 /src/signature.c | |
parent | ccd59372d46759a92c8197717ca02ba0eb31b7be (diff) |
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.
Diffstat (limited to 'src/signature.c')
-rw-r--r-- | src/signature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signature.c b/src/signature.c index 51a2fff47..2da595b85 100644 --- a/src/signature.c +++ b/src/signature.c @@ -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) |