diff options
| author | shtrophic <christoph@liebender.dev> | 2025-02-17 20:54:36 +0100 |
|---|---|---|
| committer | shtrophic <christoph@liebender.dev> | 2025-02-17 20:54:36 +0100 |
| commit | 7eb2556f26baf8ff79fcb7388712d8b714efc4f6 (patch) | |
| tree | 0d11017b6431c514bd6afd16138a06851cd2f09e /format.c | |
| parent | 7611a6bee4bcbad2f1710aafa99aba730e5cf995 (diff) | |
| parent | d40834edd1aa9d4fdb7cbcacb20edfe11734293f (diff) | |
Merge remote-tracking branch 'upstream/master' into curl-smtp
Diffstat (limited to 'format.c')
| -rw-r--r-- | format.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -458,7 +458,7 @@ xs_str *sanitize(const char *content) if (valid_tags[i]) { /* accepted tag: rebuild it with only the accepted elements */ - xs *el = xs_regex_select(v, "(src|href|rel|class|target)=\"[^\"]*\""); + xs *el = xs_regex_select(v, "(src|href|rel|class|target)=(\"[^\"]*\"|'[^']*')"); xs *s3 = xs_join(el, " "); s2 = xs_fmt("<%s%s%s%s>", |