Skip to content

Commit

Permalink
sec fix
Browse files Browse the repository at this point in the history
  • Loading branch information
talhasch committed Jan 5, 2020
1 parent 28bba7f commit 8c4481e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const escapeMeta = (s) => {
const prepareMeta = (title, description, url, image) => {
const items = [];

items.push(`<title>${title}</title>`);
items.push(`<title>${escapeMeta(title)}</title>`);
items.push(`<meta property="og:title" content="${escapeMeta(title)}"/>`);
items.push(`<meta name="twitter:title" content="${escapeMeta(title)}"/>`);

Expand Down

0 comments on commit 8c4481e

Please sign in to comment.