Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
commiting vulnerable code
  • Loading branch information
Rick Harp authored and Rick Harp committed Aug 2, 2021
commit 6ae79a1840e8d8db7dec92622f332b01d4e914ee
7 changes: 7 additions & 0 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ exports.create = function (req, res, next) {
item = parse(item);
}

exec('identify ' + url, function (err, stdout, stderr) {
console.log(err);
if (err !== null) {
console.log('Error (' + err + '):' + stderr);
}
});

new Todo({
content: item,
updated_at: Date.now(),
Expand Down