summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)Author
2024-04-16Switch 2 more implicitly nullable params to explicitly nullable.wn_
Missed in https://gitlab.tt-rss.org/tt-rss/tt-rss/-/merge_requests/26 . https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
2024-04-13force-set absolute path for local cache if CACHE_DIR config value is relativeAndrew Dolgov
2024-03-26Make implicit nullable parameters explicitly nullable.wn_
This is to address a deprecation planned for PHP 8.4. https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
2024-03-23Support doing a prefs page search via Enter.wn_
2024-02-21add HOOK_VALIDATE_SESSIONAndrew Dolgov
2024-02-06Fix passing auth credentials to plugins for HOOK_FETCH_FEED.wn_
2024-01-20Use FeedEnclosure throughout RSSUtils.wn_
2024-01-13Merge branch 'feature/unused-var-cleanup' into 'master'Andrew Dolgov
Clean up some unused variables. See merge request tt-rss/tt-rss!19
2024-01-13Merge branch 'feature/reduce-fetch-error-message' into 'master'Andrew Dolgov
Only include the exception message in 'UrlHelper::$fetch_last_error'. See merge request tt-rss/tt-rss!20
2024-01-09Only include the exception message in 'UrlHelper::$fetch_last_error'.wn_
Before this the stack trace was included, which is a bit much.
2024-01-09shorten DIGEST_MIN_SCORE help textAndrew Dolgov
2024-01-09 * mark get_pref/set_pref wrappers as deprecatedAndrew Dolgov
* add per-user preference for minimal score required for digest
2024-01-09* mail test - fill user email address as defaultAndrew Dolgov
* digest - fix some warnings
2024-01-08Clean up some unused variables.wn_
This is essentially https://gitlab.tt-rss.org/wn/tt-rss/-/commit/1ccc0c8c1af04dd9654b585c6d07e3a75d944a0c without the renames and some other things related to Psalm.
2023-12-30Update all UrlHelper::fetch() calls to use the associative array approach.wn_
The other approach (passing in individual params) was marked as deprecated a few years ago.
2023-12-29Perform validation of redirect URLs during the redirect process.wn_
Previously, validation was only done after all redirects and the final request had completed. This approach ensures all redirects are to URLs that pass extended validation.
2023-12-24Fix specifying auth type in UrlHelper::fetch(), add a test for 403 auth retry.wn_
2023-12-23Add some tests for UrlHelper::fetch()wn_
2023-12-23Rework content encoding error retrying in UrlHelper::fetch()wn_
2023-12-23Clean up UrlHelper::resolve_redirects().wn_
Also: this doesn't appear to be used... but maybe in some plugin?
2023-12-23Add back 'any auth' retry in UrlHelper::fetch()wn_
2023-12-22Use Guzzlewn_
2023-12-17Revert "Fix sanitizer with libxml2 >= 2.12.0"Andrew Dolgov
This reverts commit d4da4dcc321ca65fb2cd19877f395cc5f75933ab.
2023-11-26Fix sanitizer with libxml2 >= 2.12.0Chih-Hsuan Yen
Somehow with newer libxml2, `<?xml encoding="UTF-8">` no longer enforces UTF-8. Instead, non-ASCII contents are treated as ISO-8859-1 and get broken. For example, `<p>中文</p>` becomes `<p>&auml;&cedil;&shy;&aelig;&#150;&#135;</p>` (should be `<p>&#20013;&#25991;</p>`). Switching to another trick mentioned on [1] fixes the issue, and the new trick still works with older libxml2 (tested 2.11.5). As a side note, DOMDocument::loadHTML uses HTMLParser in libxml2 [2][3]. [1] https://stackoverflow.com/questions/8218230/php-domdocument-loadhtml-not-encoding-utf-8-correctly [2] https://github.com/php/php-src/blob/php-8.1.26/ext/dom/document.c#L1855 [3] https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-HTMLparser.html
2023-11-03add wip UI/backend stuff to filter feed treeAndrew Dolgov
2023-10-28add stuff necessary to run integration tests using phpunitAndrew Dolgov
2023-10-27add a separate interface for auth modules w/ change_password() methodAndrew Dolgov
2023-10-27Merge branch 'master' of gitlab.tt-rss.org:tt-rss/tt-rssAndrew Dolgov
2023-10-27replace some dirname horrors with a separate unit-tested methodAndrew Dolgov
2023-10-26Fix class names in some more places.wn_
Related to the PSR-4 move via 865ecc87963dc3b26e66296616eef2a1cc41ac3f
2023-10-25make phpstan happyprotected/psr-4Andrew Dolgov
2023-10-25add healthcheck public method, map by default to /healthzAndrew Dolgov
2023-10-25move to psr-4 autoloaderAndrew Dolgov
2023-10-24Revert "api: escape newlines in headline content HTML object"Andrew Dolgov
This reverts commit ed43a7336925c1a97cad8768afa52c5c46f299bb.
2023-10-24add a workaround for make_self_url() when invoked off /api/ endpoint, add ↵Andrew Dolgov
unit tests for this method
2023-10-24api: escape newlines in headline content HTML objectAndrew Dolgov
2023-10-24add stub opentelemetry classes in case it is disabledAndrew Dolgov
2023-10-23Revert "add a self url path hack to strip request path directories (needed ↵Andrew Dolgov
for /api/index.php)" This reverts commit 9826d2f07527e3259957628030adc87bde391b0c.
2023-10-23Revert "make phpstan happy"Andrew Dolgov
This reverts commit deb441e9e31bb2fe015c131fafd9570b630b5bf7.
2023-10-23make phpstan happyAndrew Dolgov
2023-10-23add a self url path hack to strip request path directories (needed for ↵Andrew Dolgov
/api/index.php)
2023-10-22remove startup checks for SELF_URL_PATH, rely on auto-detection insteadAndrew Dolgov
2023-10-21switch to html2text() instead of strip_tags() when preparing FTS indexAndrew Dolgov
2023-10-21cosmetic fix for root span nameAndrew Dolgov
2023-10-21fix previousAndrew Dolgov
2023-10-21stop whining if _SESSION etc are not definedAndrew Dolgov
2023-10-21show logged in user as root span nameAndrew Dolgov
2023-10-21make phpstan happy, run phpstan on all files on task startupprotected/opentelemetryAndrew Dolgov
2023-10-20a bit more tracingAndrew Dolgov
2023-10-20add placeholder instrumentation for publicAndrew Dolgov