aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/html.ex
AgeCommit message (Collapse)Author
2019-06-19Rich Media: Skip Microformats hashtagsrinpatch
When fixing this problem I incorrectly assumed a.hashtag is the proper way for detecting hashtags, but it is just something Pleroma and Mastodon add. Per microformats it should be detected by the presense of rel=tag. This MR adds a check for rel=tag, but I still left a.hashtag just in case
2019-06-14Fix hashtags being picked up by rich media parserrinpatch
Closes #989
2019-05-30Use Pleroma.Config everywhereEgor Kislitsyn
2019-05-03Pleroma.Formatter: width/height to class=emojiHaelwenn (lanodan) Monnier
2019-05-01Remove redundant ensure_scrubbed_htmlrinpatch
It is never used as handling for fake and non-fake activities was merged into one function above it
2019-05-01add scrubber for html special charSachin Joshi
2019-04-23Merge branch 'security/fix-html-class-scrubbing' into 'develop'kaniini
html: lock down allowed class attributes to only those related to microformats See merge request pleroma/pleroma!1090
2019-04-23html: lock down allowed class attributes to only those related to microformatsWilliam Pitcock
2019-04-17Merge branch 'develop' into feature/database-compactionrinpatch
2019-04-05Refactor html caching functions to have a key instead of a module, use more ↵rinpatch
correct terminology and fix summaries in mastoapi
2019-04-01insert object defaults for fake activities and make credo happyrinpatch
2019-04-01Fix the issue with HTML scrubberrinpatch
2019-03-17Allow 'rel' attribute on `<a>` link with specific values (for hashtag ↵Fong-Wan Chau
recognition).
2019-03-13[Credo] Remove parentesis on argument-less functionsHaelwenn (lanodan) Monnier
2019-02-09HTML.Scrubber.Default: ConsistencyHaelwenn (lanodan) Monnier
2019-02-09StashHaelwenn (lanodan) Monnier
2019-02-09Credo fixes: alias grouping/orderingHaelwenn (lanodan) Monnier
2019-02-05html: don't attempt to parse nil contentWilliam Pitcock
2019-01-28rich media: kill some testsuite noiseWilliam Pitcock
2019-01-26html: add utility function to extract first URL from an object and cache the ↵William Pitcock
result
2019-01-16html: allow microformats-related markup through the html filterWilliam Pitcock
2019-01-05oopsiesRin Toshaka
2019-01-05Different caches based on the module. Remove scrubber version since it is ↵Rin Toshaka
not relevant anymore
2018-12-31update copyright years to 2019William Pitcock
2018-12-31Move scrubber cache-related functions to Pleroma.HTMLRin Toshaka
2018-12-30shame on me for not testing after revertRin Toshaka
2018-12-30Fix formating. Aparently my pre-commit hook broke.Rin Toshaka
2018-12-30Revert some changes in html.exRin Toshaka
2018-12-29I am not sure what's going on anymore so I'll just commit and reset all the ↵Rin Toshaka
other files to HEAD
2018-12-23add license boilerplate to pleroma coreWilliam Pitcock
2018-12-14fix markdown formattingMaksim Pechnikov
2018-12-09fix compile warningsMaksim Pechnikov
2018-12-06added data attrs to twitter scrubberVald
2018-12-06added data attrs for user and tagVald
2018-11-06Runtime configurationhref
Related to #85 Everything should now be configured at runtime, with the exception of the `Pleroma.HTML` scrubbers (the scrubbers used can be changed at runtime, but their configuration is compile-time) because it's building a module with a macro.
2018-10-30Allow use of the `abbr` HTML tag.scarlett
2018-10-23html: ensure comments are correctly scrubbedWilliam Pitcock
2018-10-18html scrubbing policies: restrict img tags to http/https only for mediaproxy ↵William Pitcock
compatibility
2018-10-18lib/pleroma/html.ex: Use macros for valid_schemes, change config for schemesHaelwenn (lanodan) Monnier
2018-10-16lib/pleroma/html.ex: Use a function as a variable (broken for some reason)Haelwenn (lanodan) Monnier
2018-10-16lib/pleroma/html.ex: Fix scheme listsHaelwenn (lanodan) Monnier
Gosh please don’t break ourselves… Also this is copy-paste of the list in lib/pleroma/formatter.ex, I think this should be put in a common variable, but where?
2018-09-22html: twittertext: add missing catchall scrub functionWilliam Pitcock
2018-09-22html: default to using normal scrub policy if provided scrub policy is nilWilliam Pitcock
2018-09-16html: add policy which transforms inline images to pass through the media proxyWilliam Pitcock
2018-09-16html: allow scrubbing policies to be stackableWilliam Pitcock
2018-09-16html: add the ability to override the default scrub policyWilliam Pitcock
2018-09-10html: allow inline images by default (because of custom emoji)William Pitcock
2018-09-10html: add default scrubbing profile and configuration knobsWilliam Pitcock
2018-09-10html: new module providing a configurable markup scrubbing policyWilliam Pitcock