hostnamed: allow UTF8 chars in pretty hostname again

This commit is contained in:
Lennart Poettering
2012-10-17 21:25:42 +02:00
parent 4fa25d62bd
commit 01539d6ef9
+1 -1
View File
@@ -5929,7 +5929,7 @@ bool string_is_safe(const char *p) {
assert(p);
for (t = p; *t; t++) {
if (*t < ' ')
if (*t > 0 && *t < ' ')
return false;
if (strchr("\\\"\'", *t))