hedgedoc/public/views
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
..
hedgedoc fix(opengraph): treat user frontmatter values as String 2024-01-17 17:10:06 +01:00
includes Do not translate slogan 2023-07-30 20:07:27 +02:00
index Remove CodiMD infobox and tooltip 2023-07-30 20:07:27 +02:00
shared Allow SAML authentication provider to be named 2022-03-20 19:59:53 +01:00
error.ejs Switch to ejs 3 compliant imports 2021-02-09 20:27:39 +01:00
hedgedoc.ejs Templates: Remove lang and add translation parameter 2021-03-16 10:48:44 +01:00
htmlexport.ejs Inline CSS & JS into HTML export template 2021-08-15 00:09:53 +02:00
index.ejs Templates: Remove lang and add translation parameter 2021-03-16 10:48:44 +01:00
pretty.ejs Remove cdn support 2021-08-15 00:09:53 +02:00
slide.ejs Remove cdn support 2021-08-15 00:09:53 +02:00