mirror of
https://github.com/FreshRSS/Extensions.git
synced 2026-11-04 10:48:40 +00:00
The `{content}` placeholder is documented as the article content in HTML
format, but it was passed through `htmlspecialchars_decode()` like the
plain-text placeholders. `FreshRSS_Entry::content()` already returns
HTML, so decoding it turned escaped text into markup: an article about
the `<b>` tag produced an unclosed `<b>` element, escaped code
samples such as `<script>` became live tags, `&` became a bare
`&`, and `"` could end a double-quoted attribute early.
Insert the content as is. The plain-text placeholders (`{title}`,
`{author}`, `{url}`, ...) are still decoded, which is correct for them.
Also fix the README, which documented `{date}`, `{date_timestamp}` and
`{thumbnail_url}` placeholders that have never existed in the extension
and are sent literally. Document `{date_published}`, `{date_received}`,
`{date_modified}` and `{date_user_modified}` instead, like the
configuration page does, and use them in the examples.
Bump the extension version to 0.2.6.
Fixes #560
10 lines
243 B
JSON
10 lines
243 B
JSON
{
|
|
"name": "Webhook",
|
|
"author": "Lukas Melega, Ryahn",
|
|
"description": "Send custom webhook when new article appears (and matches custom criteria)",
|
|
"version": "0.2.6",
|
|
"entrypoint": "Webhook",
|
|
"type": "user",
|
|
"compatibility": "1.28.2"
|
|
}
|