summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
AgeCommit message (Collapse)Author
2020-09-17replace FALSE with false so that static analyzer shuts up about itAndrew Dolgov
2020-09-14- fix multiple vulnerabilities in af_proxy_httpAndrew Dolgov
- fix vulnerability in rewrite_relative_url() which prevented some URLs from being properly absolutized - fetch_file_contents: validate all URLs before requesting them - validate URLs: explicitly whitelist http and https scheme, forbid everything else - DiskCache/cached_url: only serve whitelisted content types (images, video) - simplify filename/URL handling code, remove and consolidate some less-used functions
2020-08-13pluginhost: allow overriding default sort modes via ↵Andrew Dolgov
HOOK_HEADLINES_CUSTOM_SORT_MAP etc
2020-04-29* add HOOK_ENCLOSURE_IMPORTEDAndrew Dolgov
* pass feed id to HOOK_FEED_PARSED
2020-03-10PluginHost/save_data: use separate PDO connection to prevent issues with ↵Andrew Dolgov
nested transactions
2019-11-27remove hardcoded iframe domain whitelist, make iframe script whitelisting ↵Andrew Dolgov
configurable by plugins (HOOK_IFRAME_WHITELISTED)
2019-10-07Add const HOOK_FEED_TREEjc
2019-10-07Add const HOOK_FEED_TREEjc
2019-08-16af_readability: add missing fileAndrew Dolgov
2019-08-15fix get_method_url() to use correct method parameterAndrew Dolgov
2019-08-15pluginhost: add helper methods to get private/public pluginmethod endpoint URLsAndrew Dolgov
2019-08-15pluginhost: implement priority-based system for running hooksAndrew Dolgov
2019-08-15add HOOK_ARTICLE_IMAGE for Article::get_article_image()Andrew Dolgov
2019-08-13* HOOK_ENCLOSURE_ENTRY: pass article_id to handlerAndrew Dolgov
* DiskCache: multiple fixes; support isWritable() for cache entries, set content-disposition for send() * public/cached_url: allow selecting files from sub-caches other than images * plugins/Cache_Starred_Images: rework to use DiskCache, can be enabled per-user, properly handles article enclosures, etc
2019-04-17plugins: add HOOK_GET_FULL_TEXT which may be used to provide full text ↵Andrew Dolgov
extraction to core code and other plugins, instead of trying to invoke af_readability specifically
2019-03-05pluginhost: remove plugin gettext helpers (moved to plugin base class)Andrew Dolgov
2019-03-05add P_sprintfAndrew Dolgov
2019-03-01support per-plugin locale directoriesAndrew Dolgov
2018-12-07note that HOOK_FORMAT_ARTICLE_CDM is dead for nowAndrew Dolgov
2018-12-06add HOOK_FILTER_TRIGGERED (for filter debugging)Andrew Dolgov
2018-11-30debug logging system rework:Andrew Dolgov
* support various logging levels per-message * remove hacks like debug_suppress, DAEMON_EXTENDED_DEBUG, etc * _debug() is kept as a compatibility shim for plugins
2018-11-22remove PHPMailer and related directives from config.php-dist; add pluggable ↵Andrew Dolgov
Mailer class
2018-11-03php: remove trailing whitespacesAndrew Dolgov
2018-08-07pluginhost: implement basic autoloader for classes bundled with plugins ↵Andrew Dolgov
(uses vendor/ layout)
2017-12-17pluginhost: always return an array in get_all()Andrew Dolgov
2017-12-11Merge branch 'master' of git.tt-rss.org:git/tt-rss into pdo-experimentalAndrew Dolgov
2017-12-03fix some minor issues found by code analyzerAndrew Dolgov
2017-12-03pluginhost: do not connect via legacy DB api until requestedAndrew Dolgov
log all initiated legacy database connections
2017-12-02pluginhost: save_data() fixesAndrew Dolgov
2017-12-02pluginhost: use PDOAndrew Dolgov
2017-11-27add HOOK_UNSUBSCRIBE_FEEDdim0x69
2017-10-08remove apache-specific x-sendfile stuffAndrew Dolgov
implement a hook (HOOK_SEND_LOCAL_FILE) which plugins may use to send files via httpd-specific implementation to increase performance typically on larger files
2017-09-24Add 'HOOK_FEED_BASIC_INFO' to enable plugins to provide basic feed info.wn_
It's expected the plugin will return content parsable by FeedParser, which will act as an interface to the basic feed info. In the case of a plugin that also uses 'HOOK_FETCH_FEED', both might return the same content. The hook signature was made somewhat similar to 'HOOK_FETCH_FEED'.
2017-05-26add HOOK_FORMAT_ARTICLE & HOOK_FORMAT_ARTICLE_CDMAndrew Dolgov
Feeds::format_headlines_list: add some comments for cdm article closing tags
2017-04-26remove some redundant php closing tagsAndrew Dolgov
2017-04-26fix various issues reported by static analysisAndrew Dolgov
update gitlab-ci config
2017-02-12add HOOK_ENCLOSURE_ENTRY for af_zz_imgproxyAndrew Dolgov
2017-01-07add toggle_sidebar plugin, remove obsolete toggle buttonAndrew Dolgov
add PluginHost::HOOK_MAIN_TOOLBAR_BUTTON
2016-03-01add PluginHost.HOOK_ARTICLE_EXPORT_FEEDAndrew Dolgov
2015-10-08don't init plugins when loading everything to make a list, duhAndrew Dolgov
2015-08-11add plugin-based filter actions (see example plugin in attic)Andrew Dolgov
bump schema
2015-06-15pluginhost: mention that update task & housekeeping hooks are for global ↵Andrew Dolgov
plugins only
2015-06-05pluginhost: assume plugins.local existsAndrew Dolgov
2015-06-05pluginhost: allow loading user plugins from plugins.localAndrew Dolgov
2015-04-21add HOOK_RENDER_ENCLOSURE & af_youtube_embed pluginAndrew Dolgov
2014-08-19add pluginhost HOOK_HEADLINES_BEFORE (refs #814)Andrew Dolgov
2014-05-19Add subscribe hook, give more information to fetch_feed hookwltb
2014-05-12Added HOOK_FORMAT_ENCLOSURES plugin hook.Dave Zaikos
Runs HTML and enclosures array through a plugin hook when rendering an article's enclosures in format_article_enclosures(). Allows plugins to override handling of how enclosures are presented by either filtering the array of enclosures, or generating the HTML to add to the article content.
2014-04-23Make search mechanism pluggableRob Hoelz
Currently, TinyTinyRSS can use raw SQL or the Sphinx search engine for searching. It would be nice if other search engines (such as Xapian) could be used, or if features of the underlying SQL engine (such as MySQL's FULLTEXT indexes) could be leveraged. This commit makes searching into a plugin hook, falling back to the builtin behavior if no search plugin is active. The Sphinx search behavior has been broken out into a plugin.
2014-03-14make_init_params: add pluginsAndrew Dolgov