diff options
author | VirtualTam <virtualtam+github@flibidi.net> | 2017-03-08 21:45:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-08 21:45:57 +0100 |
commit | ff6f9c71d682dbc20c363d71db5016dd0d5247c1 (patch) | |
tree | d515b37130d6ea07ff3ecccf9d6dd5a2ebf83ec0 /plugins | |
parent | ebd67c6e1b40aebdd3a52285ce9ff9412b2a3038 (diff) | |
parent | 1328d222680edf2ebdaea5624a7496240bd075f0 (diff) | |
download | Shaarli-ff6f9c71d682dbc20c363d71db5016dd0d5247c1.tar.gz Shaarli-ff6f9c71d682dbc20c363d71db5016dd0d5247c1.tar.zst Shaarli-ff6f9c71d682dbc20c363d71db5016dd0d5247c1.zip |
Merge pull request #795 from virtualtam/0.7-backport/hotfix/markdown-html
security: escape HTML entities when using Markdown
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/markdown/markdown.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php index 57fcce32..9d073fbd 100644 --- a/plugins/markdown/markdown.php +++ b/plugins/markdown/markdown.php | |||
@@ -218,7 +218,7 @@ function process_markdown($description) | |||
218 | $processedDescription = reverse_space2nbsp($processedDescription); | 218 | $processedDescription = reverse_space2nbsp($processedDescription); |
219 | $processedDescription = unescape($processedDescription); | 219 | $processedDescription = unescape($processedDescription); |
220 | $processedDescription = $parsedown | 220 | $processedDescription = $parsedown |
221 | ->setMarkupEscaped(false) | 221 | ->setMarkupEscaped(true) |
222 | ->setBreaksEnabled(true) | 222 | ->setBreaksEnabled(true) |
223 | ->text($processedDescription); | 223 | ->text($processedDescription); |
224 | $processedDescription = sanitize_html($processedDescription); | 224 | $processedDescription = sanitize_html($processedDescription); |