src/util.c

changeset 13772
f4c5bc2d6b71
parent 13646
3bf958a5e352
child 13831
448d1c6328e0
equal deleted inserted replaced
13771:83a308e6d49f 13772:f4c5bc2d6b71
1835 break; 1835 break;
1836 } 1836 }
1837 t++; 1837 t++;
1838 1838
1839 } 1839 }
1840 } else if (!g_ascii_strncasecmp(c, "www.", 4)) { 1840 } else if (!g_ascii_strncasecmp(c, "www.", 4) && (c == text || badchar(c[-1]) || badentity(c-1))) {
1841 if (c[4] != '.') { 1841 if (c[4] != '.') {
1842 t = c; 1842 t = c;
1843 while (1) { 1843 while (1) {
1844 if (badchar(*t) || badentity(t)) { 1844 if (badchar(*t) || badentity(t)) {
1845 if (t - c == 4) { 1845 if (t - c == 4) {
1890 if (!t) 1890 if (!t)
1891 break; 1891 break;
1892 t++; 1892 t++;
1893 1893
1894 } 1894 }
1895 } else if (!g_ascii_strncasecmp(c, "ftp.", 4)) { 1895 } else if (!g_ascii_strncasecmp(c, "ftp.", 4) && (c == text || badchar(c[-1]) || badentity(c-1))) {
1896 if (c[4] != '.') { 1896 if (c[4] != '.') {
1897 t = c; 1897 t = c;
1898 while (1) { 1898 while (1) {
1899 if (badchar(*t) || badentity(t)) { 1899 if (badchar(*t) || badentity(t)) {
1900 if (t - c == 4) { 1900 if (t - c == 4) {

mercurial