Skip to content

Commit 6228d03

Browse files
author
Daigo Matsubara
committed
to parse address extensions correctly
1 parent a206c12 commit 6228d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ char *parseemail(char *input, /* string to parse */
12391239
char content[2];
12401240
int backoff = ptr - input; /* max */
12411241

1242-
#define VALID_IN_EMAIL_USERNAME "a-zA-Z0-9_.%-"
1242+
#define VALID_IN_EMAIL_USERNAME "a-zA-Z0-9.!#$%&'*+-/=?^_`{|}~"
12431243
#define VALID_IN_EMAIL_DOMAINNAME "a-zA-Z0-9.-"
12441244

12451245
if (set_iso2022jp) {

0 commit comments

Comments
 (0)