Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-06-28 21:52:41 +0400
committerVicent Marti <tanoku@gmail.com>2011-06-28 21:52:41 +0400
commite053c911cfe36bca9be272e9cdc4af9ae24c76c9 (patch)
tree7d1f52b2546d0d4a34c67e40540cb6e43d5ccc43 /src/signature.c
parentccd59372d46759a92c8197717ca02ba0eb31b7be (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.c2
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)