tcs: fix special character detection

front
cinap_lenrek 2011-10-04 16:39:08 +02:00
parent eff23cb32e
commit b7811b8bc6
1 changed files with 1 additions and 1 deletions

View File

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