tcs: fix special character detection

This commit is contained in:
cinap_lenrek 2011-10-04 16:39:08 +02:00
parent eff23cb32e
commit b7811b8bc6

View file

@ -439,7 +439,7 @@ html_in(int fd, long *x, struct convert *out)
}
continue;
out:
if(strchr("<>&\"'", c)){
if((c & 0x7f) == c && strchr("<>&\"'", c)){
s = ';';
i = sprint(buf, "&%s", findbyrune(c));
goto bad;