diff options
| author | grunfink <grunfink@comam.es> | 2025-11-09 10:03:48 +0100 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-11-09 10:03:48 +0100 |
| commit | 59d5a8b4a8610c727255d46802e54f216cc9bd90 (patch) | |
| tree | 7ffea5a86a8aae2934619d808cfbecc4da5a0516 | |
| parent | c40cd66f391940bca64cc1ff9df8ba8a46a2faf7 (diff) | |
Ensure the "quote" post attribute is an URL.
It seems that Bookwyrm generate "quote" fields for another thing,
because why not.
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2397,7 +2397,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, /* quoted post */ const char *quoted_id = xs_dict_get(msg, "quote"); - if (xs_is_string(quoted_id)) { + if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/ xs *quoted_post = NULL; if (valid_status(object_get(quoted_id, "ed_post))) { |