hedgedoc/public
Erik Michelson 538f41cf1c fix(opengraph): treat user frontmatter values as String
A bug was reported that having frontmatter fields being only numeric results in an error. This seems to be caused
as the frontmatter is processed by the yaml-parser but returned
with the types as given. So a numeric value is returned as a number,
a "true" or "false" is returned as boolean etc.
As we expect strings in the template, that resulted in an exception.

This commit fixes this by treating every value as string in the template.
Since we've got no other usages of opengraph data, this should not have been
a security problem.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2024-01-17 17:10:06 +01:00
..
banner
css
docs fix(opengraph): treat user frontmatter values as String 2024-01-17 17:10:06 +01:00
fonts
icons
js feat: use codemirror precompiled package 2023-02-28 09:25:43 +01:00
uploads
vendor
views fix(opengraph): treat user frontmatter values as String 2024-01-17 17:10:06 +01:00
.eslintrc.js
default.md
screenshot.png