Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Forbid ; in query evalutation format
Baptiste Daroussin committed 14 years ago
commit b1e6b0b379dd5bdc184807be1a7acc9903e9d374
parent 5a0ae30
1 file changed +4 -0
modified pkg/query.c
@@ -340,6 +340,10 @@ format_sql_condition(const char *str, struct sbuf *sqlcond)
{
	type_t state = NONE;
	while (str[0] != '\0') {
+
		if (str[0] == ';') {
+
			fprintf(stderr, "';' is forbidden in evaluation format");
+
			return (EPKG_FATAL);
+
		}
		if (state == NONE) {
			if (str[0] == '%') {
				str++;