From e053c911cfe36bca9be272e9cdc4af9ae24c76c9 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Tue, 28 Jun 2011 19:52:41 +0200 Subject: [PATCH] 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. --- src/signature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)