mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 22:45:05 +00:00
Changed the way invalid codes in strings are stripped.
This commit is contained in:
parent
60f77b6cad
commit
1152450d1c
1 changed files with 1 additions and 2 deletions
3
format.c
3
format.c
|
@ -183,8 +183,7 @@ d_char *sanitize(const char *content)
|
||||||
|
|
||||||
/* strip dangerous control codes */
|
/* strip dangerous control codes */
|
||||||
for (n = 0; content2[n]; n++) {
|
for (n = 0; content2[n]; n++) {
|
||||||
if (content2[n] > 0x0 && content2[n] < 0x20 &&
|
if (xs_type(&content2[n]) != XSTYPE_STRING)
|
||||||
content2[n] != '\r' && content2[n] != '\n')
|
|
||||||
content2[n] = ' ';
|
content2[n] = ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue