#include "string-util.h"
#include "strv.h"
#include "time-util.h"
-#include "utf8.h"
int device_new_aux(sd_device **ret) {
sd_device *device;
return true;
/* refuse invalid UTF8 and control characters */
- if (!utf8_is_valid(value) || string_has_cc(value, /* ok= */ NULL))
- return false;
-
- return true;
+ return string_is_safe(value,
+ STRING_ALLOW_BACKSLASHES |
+ STRING_ALLOW_QUOTES |
+ STRING_ALLOW_GLOBS);
}
int device_add_property_aux(sd_device *device, const char *key, const char *value, bool db) {