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 Replace CodiMD with HedgeDoc 2020-11-14 21:18:36 +01:00
css Ignore local installed fonts 2021-08-18 22:47:22 +02:00
docs fix(opengraph): treat user frontmatter values as String 2024-01-17 17:10:06 +01:00
fonts Remove uesless executable permission for static files 2016-11-14 21:13:02 +08:00
icons apply review suggestions 2020-11-15 20:12:39 +01:00
js feat: use codemirror precompiled package 2023-02-28 09:25:43 +01:00
uploads upload image to public/uploads 2016-11-14 16:45:57 +08:00
vendor Fix missing inline authorship colors 2022-04-08 12:13:37 +02:00
views fix(opengraph): treat user frontmatter values as String 2024-01-17 17:10:06 +01:00
.eslintrc.js Fix missing inline authorship colors 2022-04-08 12:13:37 +02:00
default.md
screenshot.png Updated screenshot 2020-11-17 11:13:58 +01:00