diff options
| author | 2023-09-17 02:52:44 +0200 | |
|---|---|---|
| committer | 2023-09-17 02:52:44 +0200 | |
| commit | 952da47c6d2a209e6a41fabe7a5365380d63a5e5 (patch) | |
| tree | 07677a47664d9d4490ab16e521d7cfdabeb4fd6c /format.c | |
| parent | Also accept Update activities for Page and Article. (diff) | |
| download | penes-snac2-952da47c6d2a209e6a41fabe7a5365380d63a5e5.tar.gz penes-snac2-952da47c6d2a209e6a41fabe7a5365380d63a5e5.tar.xz penes-snac2-952da47c6d2a209e6a41fabe7a5365380d63a5e5.zip | |
Backport from xs.
Diffstat (limited to '')
| -rw-r--r-- | format.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -235,7 +235,7 @@ xs_str *sanitize(const char *content) | |||
| 235 | 235 | ||
| 236 | if (valid_tags[i]) { | 236 | if (valid_tags[i]) { |
| 237 | /* accepted tag: rebuild it with only the accepted elements */ | 237 | /* accepted tag: rebuild it with only the accepted elements */ |
| 238 | xs *el = xs_regex_match(v, "(src|href|rel|class|target)=\"[^\"]*\""); | 238 | xs *el = xs_regex_select(v, "(src|href|rel|class|target)=\"[^\"]*\""); |
| 239 | xs *s3 = xs_join(el, " "); | 239 | xs *s3 = xs_join(el, " "); |
| 240 | 240 | ||
| 241 | s2 = xs_fmt("<%s%s%s%s>", | 241 | s2 = xs_fmt("<%s%s%s%s>", |