comparison src/util.c @ 10905:d41e285af79e

[gaim-migrate @ 12634] Whoops. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 07 May 2005 17:44:00 +0000
parents acaf64c659b9
children 747ef488c600
comparison
equal deleted inserted replaced
10904:e0cf11160c97 10905:d41e285af79e
1526 if (*(t - 1) == '.') 1526 if (*(t - 1) == '.')
1527 t--; 1527 t--;
1528 if ((*(t - 1) == ')' && (inside_paren > 0))) { 1528 if ((*(t - 1) == ')' && (inside_paren > 0))) {
1529 t--; 1529 t--;
1530 } 1530 }
1531 g_strndup(c, t - c); 1531 url_buf = g_strndup(c, t - c);
1532 tmpurlbuf = gaim_unescape_html(url_buf); 1532 tmpurlbuf = gaim_unescape_html(url_buf);
1533 g_string_append_printf(ret, "<A HREF=\"%s\">%s</A>", 1533 g_string_append_printf(ret, "<A HREF=\"%s\">%s</A>",
1534 tmpurlbuf, url_buf); 1534 tmpurlbuf, url_buf);
1535 g_free(url_buf); 1535 g_free(url_buf);
1536 g_free(tmpurlbuf); 1536 g_free(tmpurlbuf);
1590 t++; 1590 t++;
1591 1591
1592 } 1592 }
1593 } else if (c != text && (*c == '@')) { 1593 } else if (c != text && (*c == '@')) {
1594 int flag; 1594 int flag;
1595 GString *gurl_buf; 1595 GString *gurl_buf = NULL;
1596 const char illegal_chars[] = "!@#$%^&*()[]{}/|\\<>\":;\r\n \0"; 1596 const char illegal_chars[] = "!@#$%^&*()[]{}/|\\<>\":;\r\n \0";
1597 1597
1598 if (strchr(illegal_chars,*(c - 1)) || strchr(illegal_chars, *(c + 1))) 1598 if (strchr(illegal_chars,*(c - 1)) || strchr(illegal_chars, *(c + 1)))
1599 flag = 0; 1599 flag = 0;
1600 else { 1600 else {