Sanitize strings that we get from the cloud backends

This commit is contained in:
Reyk Floeter 2017-06-30 21:30:05 +02:00
commit 29193e306f
6 changed files with 112 additions and 27 deletions

View file

@ -259,7 +259,7 @@ xml_char_data(void *data, const char *s, int len)
off_t off = 0;
for (i = 0; i < len && s[i] != '\0'; i++) {
if (!isspace(s[i])) {
if (!isspace((unsigned char)s[i])) {
ok = 1;
break;
}