Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #4012, removing potentially sensitive information on title update
Browse files Browse the repository at this point in the history
  • Loading branch information
testeaxeax committed Jun 9, 2018
1 parent 58e1068 commit f4b4c01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,9 @@ app.post("/api/set-title/:id/:domain", function(req, res) {
return null;
}
shot.userTitle = userTitle;
if (shot.openGraph && shot.openGraph.title) {
shot.openGraph.title = userTitle;
}
return shot.update();
}).then((updated) => {
simpleResponse(res, "Updated", 200);
Expand Down

0 comments on commit f4b4c01

Please sign in to comment.