Skip to content

Commit 6ce5e3f

Browse files
authored
Update list.sh
1 parent 7cb33dd commit 6ce5e3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/todo-list/pages/list.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ listify() {
77
}
88

99
if [[ "$REQUEST_METHOD" == "DELETE" ]]; then
10+
# note: this is definitely susceptible to evil inputs
1011
sed -i "/^${FORM_DATA[item]} /d" data/list
1112
return $(status_code 200)
1213
fi

0 commit comments

Comments
 (0)