Commit e053c911cfe36bca9be272e9cdc4af9ae24c76c9

Vicent Marti 2011-06-28T19:52:41

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/signature.c b/src/signature.c
index 51a2fff..2da595b 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)