summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorGravatar shtrophic2025-02-17 20:54:36 +0100
committerGravatar shtrophic2025-02-17 20:54:36 +0100
commit7eb2556f26baf8ff79fcb7388712d8b714efc4f6 (patch)
tree0d11017b6431c514bd6afd16138a06851cd2f09e /format.c
parentMerge tag '2.72' into curl-smtp (diff)
parentMerge pull request 'doc/snac8: elaborate regex blocking' (#305) from Menelmac... (diff)
downloadsnac2-7eb2556f26baf8ff79fcb7388712d8b714efc4f6.tar.gz
snac2-7eb2556f26baf8ff79fcb7388712d8b714efc4f6.tar.xz
snac2-7eb2556f26baf8ff79fcb7388712d8b714efc4f6.zip
Merge remote-tracking branch 'upstream/master' into curl-smtp
Diffstat (limited to 'format.c')
-rw-r--r--format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.c b/format.c
index 4c8ed29..755aeb2 100644
--- a/format.c
+++ b/format.c
@@ -458,7 +458,7 @@ xs_str *sanitize(const char *content)
458 458
459 if (valid_tags[i]) { 459 if (valid_tags[i]) {
460 /* accepted tag: rebuild it with only the accepted elements */ 460 /* accepted tag: rebuild it with only the accepted elements */
461 xs *el = xs_regex_select(v, "(src|href|rel|class|target)=\"[^\"]*\""); 461 xs *el = xs_regex_select(v, "(src|href|rel|class|target)=(\"[^\"]*\"|'[^']*')");
462 xs *s3 = xs_join(el, " "); 462 xs *s3 = xs_join(el, " ");
463 463
464 s2 = xs_fmt("<%s%s%s%s>", 464 s2 = xs_fmt("<%s%s%s%s>",