tcs: fix special character detection
parent
eff23cb32e
commit
b7811b8bc6
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue