Files
NopeCharon 67f5878da4 [Webhook] Keep the HTML of the {content} placeholder intact (#562)
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 `&lt;b&gt;` tag produced an unclosed `<b>` element, escaped code
samples such as `&lt;script&gt;` became live tags, `&amp;` became a bare
`&`, and `&quot;` 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
2026-10-27 11:33:00 +01:00

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"
}