summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmat3
1 files changed, 2 insertions, 1 deletions
diff --git a/mat b/mat
index 22b7cf5..7a8aa79 100755
--- a/mat
+++ b/mat
@@ -304,7 +304,8 @@ sub cmd_addrecipe {
$db->do($sql);
}
- $sql = "SELECT id FROM recipes WHERE name='$recipe_name' AND uri='$uri';";
+ $sql = "SELECT id FROM recipes WHERE name=".$db->quote($recipe_name).
+ " AND uri=".$db->quote($uri).";";
my @recipe_id = $db->selectrow_array($sql);
return interactive_edit_recipe_ingredients($recipe_id[0]);
}