commit
5d1b49c601a085120e834c1e9134593318465eec adds support for
filtering input to plymouthd and the script plugin.
The script plugin additions, unfortunately, fail to properly handle
scripts that don't add a validation function.
This commit fixes that by assuming no validation function means
no filtering.
Closes: https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/175
const char *add_text)
{
bool input_valid;
+
+ if (script_obj_is_null (data->script_validate_input_func))
+ return true;
+
script_obj_t *entry_text_obj = script_obj_new_string (entry_text);
script_obj_t *add_text_obj = script_obj_new_string (add_text);
script_return_t ret = script_execute_object (state,