<feed xmlns='http://www.w3.org/2005/Atom'>
<title>hedgedoc/public/views, branch cindy</title>
<subtitle>Hedgedoc with support for CindyScript
</subtitle>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/hedgedoc/'/>
<entry>
<title>Add simple support for cindyjs</title>
<updated>2021-05-17T18:12:50+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-03-09T00:23:23+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/hedgedoc/commit/?id=b0f98a43381486995b99ed79e0eabb3af149dbf3'/>
<id>b0f98a43381486995b99ed79e0eabb3af149dbf3</id>
<content type='text'>
Notably, the error output (in case of compiler errors) is generated
by overwriting the builtin console.error-function, which is a horrible
idea for many reasons, but there isn't really any other way right now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Notably, the error output (in case of compiler errors) is generated
by overwriting the builtin console.error-function, which is a horrible
idea for many reasons, but there isn't really any other way right now.
</pre>
</div>
</content>
</entry>
<entry>
<title>Escape custom Open Graph tags</title>
<updated>2021-05-09T17:21:27+00:00</updated>
<author>
<name>David Mehren</name>
</author>
<published>2021-05-09T13:25:59+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/hedgedoc/commit/?id=4a0216096a6aa1ebba9d8b0ada067c73ffa1513f'/>
<id>4a0216096a6aa1ebba9d8b0ada067c73ffa1513f</id>
<content type='text'>
HedgeDoc allows to specify custom Open Graph tags using the
`opengraph` key in the YAML metadata of a note.

These are rendered into the HTML delivered to clients using `ejs` and
its `&lt;%-` tag. This outputs the variable unescaped into the template
and therefore allows to inject arbitrary strings,
including `&lt;script&gt;` tags.

This commit changes the template to use ejs's `&lt;%=` tag instead,
which automatically escapes the variables content,
thereby mitigating the XSS vector.

See also https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-gjg7-4j2h-94fq

Co-authored-by: Christoph (Sheogorath) Kern &lt;sheogorath@shivering-isles.com&gt;
Signed-off-by: David Mehren &lt;git@herrmehren.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
HedgeDoc allows to specify custom Open Graph tags using the
`opengraph` key in the YAML metadata of a note.

These are rendered into the HTML delivered to clients using `ejs` and
its `&lt;%-` tag. This outputs the variable unescaped into the template
and therefore allows to inject arbitrary strings,
including `&lt;script&gt;` tags.

This commit changes the template to use ejs's `&lt;%=` tag instead,
which automatically escapes the variables content,
thereby mitigating the XSS vector.

See also https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-gjg7-4j2h-94fq

Co-authored-by: Christoph (Sheogorath) Kern &lt;sheogorath@shivering-isles.com&gt;
Signed-off-by: David Mehren &lt;git@herrmehren.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Extract list of supported languages in separate file</title>
<updated>2021-04-26T19:45:31+00:00</updated>
<author>
<name>Erik Michelson</name>
</author>
<published>2021-04-25T22:18:08+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/hedgedoc/commit/?id=0d943d128431f166045de53bd64575dac142d320'/>
<id>0d943d128431f166045de53bd64575dac142d320</id>
<content type='text'>
Signed-off-by: Erik Michelson &lt;github@erik.michelson.eu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Erik Michelson &lt;github@erik.michelson.eu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for freshly imported languages</title>
<updated>2021-04-26T19:42:06+00:00</updated>
<author>
<name>David Mehren</name>
</author>
<published>2021-04-25T20:28:42+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/hedgedoc/commit/?id=837cf59ef9f27d8cbc6d77120304d8dcf8e7e9bb'/>
<id>837cf59ef9f27d8cbc6d77120304d8dcf8e7e9bb</id>
<content type='text'>
New languages: bg, fa, gl, he, hu, oc, pt-br

Signed-off-by: David Mehren &lt;git@herrmehren.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
New languages: bg, fa, gl, he, hu, oc, pt-br

Signed-off-by: David Mehren &lt;git@herrmehren.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Templates: Remove lang and add translation parameter</title>
<updated>2021-03-16T09:48:44+00:00</updated>
<author>
<name>Philip Molares</name>
</author>
<published>2021-03-11T11:21:44+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/hedgedoc/commit/?id=8e6aab0145019b40cb5517cbb66d2bbe545f0ec9'/>
<id>8e6aab0145019b40cb5517cbb66d2bbe545f0ec9</id>
<content type='text'>
Since the interface is not always in english, we mostly removed the lang attribute from all html tags. Since the error messages in error.ejs are not translated, but always in english, there the global lang="en" should be kept.
Also in the slide and editor template the div, which contains the user generated text, has the attribute translate="no" now, to avoid unwanted translations.
Since on the publish view (pretty.ejs) only the user generated content is shown, we set the lang to the language defined in yaml (or 'en') as a default, but that was also moved to the corresponding markdown div instead of html.

Fixes #881
See also #437

Signed-off-by: Philip Molares &lt;philip.molares@udo.edu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since the interface is not always in english, we mostly removed the lang attribute from all html tags. Since the error messages in error.ejs are not translated, but always in english, there the global lang="en" should be kept.
Also in the slide and editor template the div, which contains the user generated text, has the attribute translate="no" now, to avoid unwanted translations.
Since on the publish view (pretty.ejs) only the user generated content is shown, we set the lang to the language defined in yaml (or 'en') as a default, but that was also moved to the corresponding markdown div instead of html.

Fixes #881
See also #437

Signed-off-by: Philip Molares &lt;philip.molares@udo.edu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Switch to ejs 3 compliant imports</title>
<updated>2021-02-09T19:27:39+00:00</updated>
<author>
<name>David Mehren</name>
</author>
<published>2021-02-09T19:27:29+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/hedgedoc/commit/?id=b468fb623b055ea6f105b40289d708023e59a07e'/>
<id>b468fb623b055ea6f105b40289d708023e59a07e</id>
<content type='text'>
Signed-off-by: David Mehren &lt;git@herrmehren.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Mehren &lt;git@herrmehren.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #599 from hedgedoc/fix/icons</title>
<updated>2020-11-27T20:06:07+00:00</updated>
<author>
<name>David Mehren</name>
</author>
<published>2020-11-27T20:06:07+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/hedgedoc/commit/?id=e985c2e694c110bd3837cc3127ffc78e37950dd1'/>
<id>e985c2e694c110bd3837cc3127ffc78e37950dd1</id>
<content type='text'>
Fix shortcut icon urls pointing to old (nonexistent) files</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix shortcut icon urls pointing to old (nonexistent) files</pre>
</div>
</content>
</entry>
<entry>
<title>Replace references to Matrix room with chat.hedgedoc.org</title>
<updated>2020-11-27T18:53:26+00:00</updated>
<author>
<name>David Mehren</name>
</author>
<published>2020-11-27T18:53:14+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/hedgedoc/commit/?id=b506db11a042f67cc752eecd79977cc944df5663'/>
<id>b506db11a042f67cc752eecd79977cc944df5663</id>
<content type='text'>
Signed-off-by: David Mehren &lt;git@herrmehren.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Mehren &lt;git@herrmehren.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed shortcut icon urls pointing to old (nonexistent) files</title>
<updated>2020-11-27T10:29:34+00:00</updated>
<author>
<name>Erik Michelson</name>
</author>
<published>2020-11-27T10:29:34+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/hedgedoc/commit/?id=68c8f2860dd85f984e68b05393fbfdab0eec88c6'/>
<id>68c8f2860dd85f984e68b05393fbfdab0eec88c6</id>
<content type='text'>
Signed-off-by: Erik Michelson &lt;github@erik.michelson.eu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Erik Michelson &lt;github@erik.michelson.eu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove pdf export code</title>
<updated>2020-11-26T20:09:23+00:00</updated>
<author>
<name>Tilman Vatteroth</name>
</author>
<published>2020-11-26T19:52:57+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/hedgedoc/commit/?id=97312b5ed3db8e5967184fc2f693a47dcba091f5'/>
<id>97312b5ed3db8e5967184fc2f693a47dcba091f5</id>
<content type='text'>
Signed-off-by: Tilman Vatteroth &lt;tilman.vatteroth@tu-dortmund.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Tilman Vatteroth &lt;tilman.vatteroth@tu-dortmund.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
