#include "array.h"
#include "istream.h"
#include "str.h"
+#include "str-sanitize.h"
#include "json-parser.h"
#include "settings.h"
#include "dict.h"
if (ret > 0) {
e_debug(authdb_event(iter->auth_request),
"Lookup: %s = %s", str_c(path),
- key->value);
+ str_sanitize(key->value, UINT_MAX));
} else if (ret < 0) {
e_error(authdb_event(iter->auth_request),
"Failed to lookup key %s: %s", str_c(path), error);
} else if (key->key->default_value != NULL) {
e_debug(authdb_event(iter->auth_request),
"Lookup: %s not found, using default value %s",
- str_c(path), key->key->default_value);
+ str_c(path), str_sanitize(key->key->default_value, UINT_MAX));
key->value = key->key->default_value;
} else {
return 0;