From: Christian H. <ch...@us...> - 2002-06-22 00:40:50
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv25462/src Modified Files: util.c Log Message: E-mail addresses are no longer truncated when there is a '.' at the end. Index: util.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/util.c,v retrieving revision 1.121 retrieving revision 1.122 diff -u -d -r1.121 -r1.122 --- util.c 29 May 2002 01:23:38 -0000 1.121 +++ util.c 22 Jun 2002 00:40:47 -0000 1.122 @@ -252,7 +252,7 @@ char *tmp; int flag; int len = 0; - char illegal_chars[] = "!@#$%^&*()[]{}/\\<>\":;\0"; + char illegal_chars[] = "!@#$%^&*()[]{}/|\\<>\":;\0"; url_buf[0] = 0; if (*(c - 1) == ' ' || *(c + 1) == ' ' || rindex(illegal_chars, *(c + 1)) @@ -283,15 +283,15 @@ } } - t = c + 1; while (flag) { if (badchar(*t)) { - if (*(t - 1) == '.') { - url_buf[t-c] = '\0'; + while (*(t - 1) == '.') { + url_buf[t - cpy - 1] = '\0'; t--; } + cnt += g_snprintf(&text[cnt], 1024, "<A HREF=\"mailto:%s\">%s</A>", url_buf, url_buf); @@ -308,10 +308,7 @@ } t++; - } - - } if (*c == 0) |