aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-11-09 10:03:48 +0100
committergrunfink <grunfink@comam.es>2025-11-09 10:03:48 +0100
commit59d5a8b4a8610c727255d46802e54f216cc9bd90 (patch)
tree7ffea5a86a8aae2934619d808cfbecc4da5a0516
parentc40cd66f391940bca64cc1ff9df8ba8a46a2faf7 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index ec7d7bf..ae5adec 100644
--- a/html.c
+++ b/html.c
@@ -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, &quoted_post))) {