diff --git a/src/main.c b/src/main.c index c375324d986be7a3955ccbcca1f32430beab1795..0af70cd72539161da27523a0a76267e1506b7704 100644 --- a/src/main.c +++ b/src/main.c @@ -152,7 +152,9 @@ parse_commands_file (struct WpDaemonData *d, GInputStream * stream, abi = strtok_r (NULL, " ", &saveptr); module = strtok_r (NULL, " ", &saveptr); - if (!abi || !module) { + if (!abi || !module || + (abi && abi[0] == '{') || (module && module[0] == '{')) + { g_set_error (error, WP_DOMAIN_DAEMON, WP_CODE_INVALID_ARGUMENT, "expected ABI and MODULE at line %i", lineno); return FALSE;